projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update after module 'select' was created.
[gnulib.git]
/
lib
/
sys_select.in.h
diff --git
a/lib/sys_select.in.h
b/lib/sys_select.in.h
index
341543b
..
5a4b7a5
100644
(file)
--- a/
lib/sys_select.in.h
+++ b/
lib/sys_select.in.h
@@
-25,6
+25,10
@@
<sys/types.h>. */
# include <sys/types.h>
<sys/types.h>. */
# include <sys/types.h>
+/* On OSF/1 4.0, <sys/select.h> provides only a forward declaration
+ of 'struct timeval', and no definition of this type.. */
+# include <sys/time.h>
+
/* The include_next requires a split double-inclusion guard. */
# @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@
/* The include_next requires a split double-inclusion guard. */
# @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@
@@
-40,10
+44,24
@@
# include <sys/socket.h>
# if @HAVE_WINSOCK2_H@
# include <sys/socket.h>
# if @HAVE_WINSOCK2_H@
-# undef select
-# define select rpl_select
+# ifdef __cplusplus
+extern "C" {
+# endif
+
+# if @GNULIB_SELECT@
+# undef select
+# define select rpl_select
extern int rpl_select (int, fd_set *, fd_set *, fd_set *, struct timeval *);
extern int rpl_select (int, fd_set *, fd_set *, fd_set *, struct timeval *);
+# else
+# undef select
+# define select select_used_without_requesting_gnulib_module_select
+# endif
+
+# ifdef __cplusplus
+}
+# endif
+
# endif
#endif
# endif
#endif