diff options
-rw-r--r-- | src/misc/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/ioctl.c b/src/misc/ioctl.c index aa748fb8..89477511 100644 --- a/src/misc/ioctl.c +++ b/src/misc/ioctl.c @@ -120,7 +120,7 @@ int ioctl(int fd, int req, ...) arg = va_arg(ap, void *); va_end(ap); int r = __syscall(SYS_ioctl, fd, req, arg); - if (req && r==-ENOTTY) { + if (SIOCGSTAMP != SIOCGSTAMP_OLD && req && r==-ENOTTY) { for (int i=0; i<sizeof compat_map/sizeof *compat_map; i++) { if (compat_map[i].new_req != req) continue; union { |