author | Rich Felker <dalias@aerifal.cx> | 2019年12月22日 13:25:17 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019年12月22日 13:25:58 -0500 |
commit | d01fdc777dd3b5ebcad351ee47d1984d28db31e4 (patch) | |
tree | 411716159015c345b6c2f0af0f60864f039c6d3f /src/misc/ioctl.c | |
parent | f9895817321790bef33a56e3b10f3f71d989c23e (diff) | |
download | musl-d01fdc777dd3b5ebcad351ee47d1984d28db31e4.tar.gz |
-rw-r--r-- | src/misc/ioctl.c | 2 |
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 { |