summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-01-10 14:28:52 +0000
committerSimon Josefsson <simon@josefsson.org>2006-01-10 14:28:52 +0000
commitb8dff30e13560a9a3f973c6334f8b39917004e37 (patch)
treebb190596e7a16955e3ee2801890c39081c130b81 /modules
parentd4ddb514c4dc8bad0736ce4c4e23b3dc1d489e68 (diff)
downloadgnulib-b8dff30e13560a9a3f973c6334f8b39917004e37.tar.gz
Add sys_socket module.
Diffstat (limited to 'modules')
-rw-r--r--modules/sys_socket35
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/sys_socket b/modules/sys_socket
new file mode 100644
index 0000000000..5da2ac5bdb
--- /dev/null
+++ b/modules/sys_socket
@@ -0,0 +1,35 @@
+Description:
+A <sys/socket.h> for systems lacking it.
+
+Files:
+lib/socket_.h
+m4/sys_socket_h.m4
+
+Depends-on:
+
+configure.ac:
+gl_HEADER_SYS_SOCKET
+
+Makefile.am:
+BUILT_SOURCES += $(SYS_SOCKET_H)
+EXTRA_DIST += socket_.h
+
+# We need the following in order to create <sys/socket.h> when the system
+# doesn't have one that works with the given compiler.
+sys/socket.h: socket_.h
+ test -d sys || mkdir sys
+ cp $(srcdir)/socket_.h $@-t
+ mv $@-t $@
+MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
+
+mostlyclean-local:
+ -rmdir sys 2>/dev/null
+
+Include:
+#include <sys/socket.h>
+
+License:
+LGPL
+
+Maintainer:
+Simon Josefsson