summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2018-02-01 14:45:56 -0500
committerAdam Jackson <ajax@redhat.com>2018-02-01 14:47:38 -0500
commit05b1963945ff8a2989c97ba1bbbee507b6328b2d (patch)
tree921d187a0ee0ac1d691005935bc665922f488507 /include
parent627f4f40abb51a927ed91d9e8b45630d006886c2 (diff)
xproto: Move NARROWPROTO logic out of configure time
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/X11/Xfuncproto.h.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/X11/Xfuncproto.h.in b/include/X11/Xfuncproto.h.in
index b88493d..3259366 100644
--- a/include/X11/Xfuncproto.h.in
+++ b/include/X11/Xfuncproto.h.in
@@ -48,8 +48,9 @@ in this Software without prior written authorization from The Open Group.
#endif /* _Xconst */
/* Function prototype configuration (see configure for more info) */
-#ifndef NARROWPROTO
-#undef NARROWPROTO
+#if !defined(NARROWPROTO) && \
+ (defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__))
+#define NARROWPROTO
#endif
#ifndef FUNCPROTO
#undef FUNCPROTO