]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: define BSD 4.3 ioctls only under __USE_MISC
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 27 Aug 2020 11:35:58 +0000 (13:35 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 27 Aug 2020 11:36:32 +0000 (13:36 +0200)
sysdeps/mach/hurd/bits/ioctls.h

index eed63e759b02e3791ed7f39be34b666bdb6460ca..1226186ff95b661ed80b7966dc47a493b31e71d7 100644 (file)
@@ -321,6 +321,7 @@ enum __ioctl_datum { IOC_8, IOC_16, IOC_32, IOC_64 };
 /* Compatibility with 4.3 BSD terminal driver.
    From 4.4 <sys/ioctl_compat.h>.  */
 
+#ifdef __USE_MISC
 #ifdef USE_OLD_TTY
 # undef  TIOCGETD
 # define TIOCGETD      _IOR('t', 0, int)       /* get line discipline */
@@ -428,5 +429,6 @@ enum __ioctl_datum { IOC_8, IOC_16, IOC_32, IOC_64 };
 # define EXTA  14
 # define EXTB  15
 #endif /* USE_OLD_TTY */
+#endif
 
 #endif /* bits/ioctls.h */