This commit is contained in:
Shengliang Guan 2020-11-03 20:28:10 +08:00
parent 38c28f1cb6
commit 9c7640e570
1 changed files with 3 additions and 3 deletions

View File

@ -25,9 +25,9 @@ extern "C" {
#define tlseek(fd, offset, whence) lseek(fd, offset, whence)
#define tclose(fd) \
{ \
if (FD_VALID(x)) { \
close(x); \
x = FD_INITIALIZER; \
if (FD_VALID(fd)) { \
close(fd); \
fd = FD_INITIALIZER; \
} \
}