aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-12-02 21:24:58 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-12-02 21:26:50 +0100
commit2fb85a37874c09fb22cd069f7c3c7fd6d8eb2f8f (patch)
tree5de81a6cd03af51f8eff0d257b60150a0d55f9ce /sysdeps/mach/hurd
parent4e16d89866e660426438238a47c2345bdc47dd97 (diff)
downloadglibc-2fb85a37874c09fb22cd069f7c3c7fd6d8eb2f8f.tar
glibc-2fb85a37874c09fb22cd069f7c3c7fd6d8eb2f8f.tar.gz
glibc-2fb85a37874c09fb22cd069f7c3c7fd6d8eb2f8f.tar.bz2
glibc-2fb85a37874c09fb22cd069f7c3c7fd6d8eb2f8f.zip
hurd: [!__USE_MISC] Do not #undef BSD macros in ioctls
When e.g. including termios.h first and then sys/ioctl.h, without e.g. _BSD_SOURCE, the latter would #undef e.g. ECHO, without defining it.
Diffstat (limited to 'sysdeps/mach/hurd')
-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 943d5e4287..1b2fd6b33f 100644
--- a/sysdeps/mach/hurd/bits/ioctls.h
+++ b/sysdeps/mach/hurd/bits/ioctls.h
@@ -25,6 +25,7 @@
/* These macros are also defined in <bits/termios.h> (with numerically
identical values) but this serves to shut up cpp's complaining. */
+#ifdef __USE_MISC
#ifdef NL0
# undef NL0
#endif
@@ -82,6 +83,7 @@
#ifdef NOFLSH
# undef NOFLSH
#endif
+#endif
/* Hurd ioctl request are made up of several fields: