diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-12-02 21:24:58 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-12-02 21:26:50 +0100 |
commit | 2fb85a37874c09fb22cd069f7c3c7fd6d8eb2f8f (patch) | |
tree | 5de81a6cd03af51f8eff0d257b60150a0d55f9ce | |
parent | 4e16d89866e660426438238a47c2345bdc47dd97 (diff) | |
download | glibc-2fb85a37874c09fb22cd069f7c3c7fd6d8eb2f8f.zip glibc-2fb85a37874c09fb22cd069f7c3c7fd6d8eb2f8f.tar.gz glibc-2fb85a37874c09fb22cd069f7c3c7fd6d8eb2f8f.tar.bz2 |
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.
-rw-r--r-- | sysdeps/mach/hurd/bits/ioctls.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/bits/ioctls.h b/sysdeps/mach/hurd/bits/ioctls.h index 943d5e4..1b2fd6b 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: |