about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/bits
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-08-27 13:35:58 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-08-27 13:36:32 +0200
commitcd41ffeb0bbca641a02e1030e13ab317ce7d645c (patch)
tree470a586e72342d790f3a357fb335998c3f04bd2b /sysdeps/mach/hurd/bits
parent5df6ebcf44fd89d429c1fee78c893e280a551ee8 (diff)
downloadglibc-cd41ffeb0bbca641a02e1030e13ab317ce7d645c.tar.gz
glibc-cd41ffeb0bbca641a02e1030e13ab317ce7d645c.tar.xz
glibc-cd41ffeb0bbca641a02e1030e13ab317ce7d645c.zip
hurd: define BSD 4.3 ioctls only under __USE_MISC
Diffstat (limited to 'sysdeps/mach/hurd/bits')
-rw-r--r--sysdeps/mach/hurd/bits/ioctls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/bits/ioctls.h b/sysdeps/mach/hurd/bits/ioctls.h
index eed63e759b..1226186ff9 100644
--- a/sysdeps/mach/hurd/bits/ioctls.h
+++ b/sysdeps/mach/hurd/bits/ioctls.h
@@ -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 */