Description:
A <unistd.h> for systems lacking it.
Files:
m4/unistd_h.m4
lib/unistd_.h
Depends-on:
absolute-header
configure.ac:
gl_HEADER_UNISTD
Makefile.am:
BUILT_SOURCES += $(UNISTD_H)
# We need the following in order to create an empty placeholder for
# <unistd.h> when the system doesn't have one.
unistd.h: unistd_.h
rm -f $@-t $@
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's|@''ABSOLUTE_UNISTD_H''@|$(ABSOLUTE_UNISTD_H)|g' \
< $(srcdir)/unistd_.h; \
} > $@-t
mv $@-t $@
MOSTLYCLEANFILES += unistd.h unistd.h-t
Include:
#include <unistd.h>
License:
LGPL
Maintainer:
Simon Josefsson