public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] hurd: [!__USE_MISC] Do not #undef BSD macros in ioctls
@ 2023-12-02 20:27 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2023-12-02 20:27 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2fb85a37874c09fb22cd069f7c3c7fd6d8eb2f8f
commit 2fb85a37874c09fb22cd069f7c3c7fd6d8eb2f8f
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sat Dec 2 21:24:58 2023 +0100
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.
Diff:
---
sysdeps/mach/hurd/bits/ioctls.h | 2 ++
1 file changed, 2 insertions(+)
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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-02 20:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-02 20:27 [glibc] hurd: [!__USE_MISC] Do not #undef BSD macros in ioctls Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).