diff options
author | Bruno Haible <bruno@clisp.org> | 2008-10-10 04:25:28 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-10-10 04:25:28 +0200 |
commit | 0806b2e000515c8c9f32c5276df88936d3f890cb (patch) | |
tree | b08d436f79d39331824ee84f3ef5be732351aa3e /modules/sys_ioctl | |
parent | 9e63878c72a554e74801cf0855729d8be649a9f5 (diff) | |
download | gnulib-0806b2e000515c8c9f32c5276df88936d3f890cb.tar.gz |
New module 'sys_ioctl'.
Diffstat (limited to 'modules/sys_ioctl')
-rw-r--r-- | modules/sys_ioctl | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/modules/sys_ioctl b/modules/sys_ioctl new file mode 100644 index 0000000000..a00893c969 --- /dev/null +++ b/modules/sys_ioctl @@ -0,0 +1,46 @@ +Description: +A <sys/ioctl.h> for systems with missing declarations. + +Files: +lib/sys_ioctl.in.h +m4/sys_ioctl_h.m4 + +Depends-on: +include_next +link-warning +unistd + +configure.ac: +gl_SYS_IOCTL_H +AC_PROG_MKDIR_P + +Makefile.am: +BUILT_SOURCES += $(SYS_IOCTL_H) + +# We need the following in order to create <sys/ioctl.h> when the system +# does not have a complete one. +sys/ioctl.h: sys_ioctl.in.h + @MKDIR_P@ sys + rm -f $@-t $@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''HAVE_SYS_IOCTL_H''@|$(HAVE_SYS_IOCTL_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SYS_IOCTL_H''@|$(NEXT_SYS_IOCTL_H)|g' \ + -e 's|@''GNULIB_IOCTL''@|$(GNULIB_IOCTL)|g' \ + -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H)|g' \ + -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + < $(srcdir)/sys_ioctl.in.h; \ + } > $@-t + mv $@-t $@ +MOSTLYCLEANFILES += sys/ioctl.h sys/ioctl.h-t +MOSTLYCLEANDIRS += sys + +Include: +#include <sys/ioctl.h> + +License: +LGPLv2+ + +Maintainer: +all |