diff mbox series

[hurd,commited] hurd: define BSD 4.3 ioctls only under __USE_MISC

Message ID 20200827113654.1244969-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] hurd: define BSD 4.3 ioctls only under __USE_MISC | expand

Commit Message

Samuel Thibault Aug. 27, 2020, 11:36 a.m. UTC
---
 sysdeps/mach/hurd/bits/ioctls.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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 */