2 A <sys/select.h> for systems lacking it.
18 BUILT_SOURCES += $(SYS_SELECT_H)
20 # We need the following in order to create <sys/select.h> when the system
21 # doesn't have one that works with the given compiler.
22 sys/select.h: sys_select.in.h
25 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
26 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
27 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
28 -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \
29 -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \
30 -e 's|@''GNULIB_SELECT''@|$(GNULIB_SELECT)|g' \
31 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
32 < $(srcdir)/sys_select.in.h; \
35 MOSTLYCLEANFILES += sys/select.h sys/select.h-t
36 MOSTLYCLEANDIRS += sys
39 #include <sys/select.h>