Mercurial > gnulib
comparison lib/sys_select.in.h @ 16348:b854ad995083
* lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
currently being included, just include the system's <sys/select.h>.
2012-02-04 Bruno Haible <bruno@clisp.org>
sys_select: Avoid syntax error on OpenBSD 5.0.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 04 Feb 2012 14:56:18 +0100 |
parents | a813bd88fc8d |
children | bb182ee4a09d |
comparison
equal
deleted
inserted
replaced
16347:a813bd88fc8d | 16348:b854ad995083 |
---|---|
38 gives a syntax error because <sys/timespec.h> has not been completely | 38 gives a syntax error because <sys/timespec.h> has not been completely |
39 processed. Simply delegate to the system's header in this case. */ | 39 processed. Simply delegate to the system's header in this case. */ |
40 #elif @HAVE_SYS_SELECT_H@ && defined __sgi && (defined _SYS_BSD_TYPES_H && !defined _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_BSD_TYPES_H) | 40 #elif @HAVE_SYS_SELECT_H@ && defined __sgi && (defined _SYS_BSD_TYPES_H && !defined _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_BSD_TYPES_H) |
41 | 41 |
42 # define _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_BSD_TYPES_H | 42 # define _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_BSD_TYPES_H |
43 # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ | |
44 | |
45 /* On OpenBSD 5.0, <pthread.h> includes <sys/types.h>, which includes | |
46 <sys/select.h>. At this point we cannot include <signal.h>, because that | |
47 includes gnulib's pthread.h override, which gives a syntax error because | |
48 /usr/include/pthread.h has not been completely processed. Simply delegate | |
49 to the system's header in this case. */ | |
50 #elif @HAVE_SYS_SELECT_H@ && defined __OpenBSD__ && (defined _PTHREAD_H_ && !defined PTHREAD_MUTEX_INITIALIZER) | |
51 | |
43 # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ | 52 # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ |
44 | 53 |
45 #else | 54 #else |
46 | 55 |
47 #ifndef _@GUARD_PREFIX@_SYS_SELECT_H | 56 #ifndef _@GUARD_PREFIX@_SYS_SELECT_H |