git-bsd4.3-ioctls
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 6 Jul 2021 19:16:59 +0000 (20:16 +0100)
committerAurelien Jarno <aurel32@debian.org>
Tue, 6 Jul 2021 19:16:59 +0000 (20:16 +0100)
Committed for glibc 2.33

commit cd41ffeb0bbca641a02e1030e13ab317ce7d645c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Thu Aug 27 13:35:58 2020 +0200

    hurd: define BSD 4.3 ioctls only under __USE_MISC

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-bsd4.3-ioctls.diff

sysdeps/mach/hurd/bits/ioctls.h

index 6ea885d2c99492e95f8112c7bc5673a1597ae960..1e0f1d72fb349311bb03666f2429dc951f181ee6 100644 (file)
@@ -329,6 +329,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 */
@@ -440,5 +441,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 */