eet: sys/mman.h is only needed when building with signature support.

SVN revision: 65441
This commit is contained in:
Cedric BAIL 2011-11-20 14:20:03 +00:00
parent 73c6c34cd6
commit c0ea91460a
2 changed files with 4 additions and 2 deletions

View File

@ -65,7 +65,9 @@ eet_amalgamation.c: $(base_sources) Makefile
@echo "#include <limits.h>" >> eet_amalgamation.c
@echo "#include <sys/types.h>" >> eet_amalgamation.c
@echo "#include <sys/stat.h>" >> eet_amalgamation.c
@echo "#include <sys/mman.h>" >> eet_amalgamation.c
@echo "#ifdef HAVE_SIGNATURE" >> eet_amalgamation.c
@echo "# include <sys/mman.h>" >> eet_amalgamation.c
@echo "#endif" >> eet_amalgamation.c
@echo "#include <setjmp.h>" >> eet_amalgamation.c
@echo "#include <errno.h>" >> eet_amalgamation.c
@echo "#include <time.h>" >> eet_amalgamation.c

View File

@ -23,7 +23,6 @@ void *alloca(size_t);
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
@ -34,6 +33,7 @@ void *alloca(size_t);
#endif /* ifdef HAVE_NETINET_IN_H */
#ifdef HAVE_SIGNATURE
# include <sys/mman.h>
# ifdef HAVE_GNUTLS
# include <gnutls/gnutls.h>
# include <gnutls/x509.h>