eet: sys/mman.h is only needed when building with signature support.
authorcedric <cedric>
Sun, 20 Nov 2011 14:20:03 +0000 (14:20 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 20 Nov 2011 14:20:03 +0000 (14:20 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@65441 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/Makefile.am
src/lib/eet_cipher.c

index 83489e8..4633749 100644 (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
index 3f9895c..89ee65d 100644 (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>