From 2bcfa56c2934e858594b8cdf52020af169b03814 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 4 Feb 2012 14:50:20 +0100 Subject: [PATCH] sys_select: Avoid syntax error on OpenBSD 5.0. * lib/sys_select.in.h: Include only after the include_next , not before. Reported by Jiri B . --- ChangeLog | 7 +++++++ lib/sys_select.in.h | 14 ++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 11b6e709b..26c317e77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2012-02-04 Bruno Haible + sys_select: Avoid syntax error on OpenBSD 5.0. + * lib/sys_select.in.h: Include only after the include_next + , not before. + Reported by Jiri B . + +2012-02-04 Bruno Haible + get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7. * tests/test-get-rusage-as.c (main): Assign the malloc() results to global variables. diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index 5311f437e..96edb3ddd 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -51,12 +51,6 @@ in where it belongs. */ #include -/* Get definition of 'sigset_t'. - But avoid namespace pollution on glibc systems. */ -#if !(defined __GLIBC__ && !defined __UCLIBC__) -# include -#endif - #if @HAVE_SYS_SELECT_H@ /* On OSF/1 4.0, provides only a forward declaration @@ -81,6 +75,14 @@ #endif +/* Get definition of 'sigset_t'. + But avoid namespace pollution on glibc systems. + Do this after the include_next (for the sake of OpenBSD 5.0) but before + the split double-inclusion guard (for the sake of Solaris). */ +#if !(defined __GLIBC__ && !defined __UCLIBC__) +# include +#endif + #ifndef _@GUARD_PREFIX@_SYS_SELECT_H #define _@GUARD_PREFIX@_SYS_SELECT_H -- 2.11.0