2 A <sys/socket.h> for systems lacking it.
17 BUILT_SOURCES += $(SYS_SOCKET_H)
19 # We need the following in order to create <sys/socket.h> when the system
20 # doesn't have one that works with the given compiler.
21 sys/socket.h: sys_socket.in.h
23 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24 sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
25 -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
26 -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
27 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
28 -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
29 < $(srcdir)/sys_socket.in.h; \
32 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
33 MOSTLYCLEANDIRS += sys
36 #include <sys/socket.h>