summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-03-20 16:14:35 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-03-20 16:14:35 +0000
commitccf3ca437033c11170d97595b6106b51df7c5e1e (patch)
tree81eb6ff827779af475305fddc256d096bcf877e3 /dev-db/sqlite/files
parentDropped old. (diff)
downloadgentoo-2-ccf3ca437033c11170d97595b6106b51df7c5e1e.tar.gz
gentoo-2-ccf3ca437033c11170d97595b6106b51df7c5e1e.tar.bz2
gentoo-2-ccf3ca437033c11170d97595b6106b51df7c5e1e.zip
Include stdlib.h for function exit in temp.c generation.
(Portage version: 2.2.0_alpha92/cvs/Linux x86_64)
Diffstat (limited to 'dev-db/sqlite/files')
-rw-r--r--dev-db/sqlite/files/sqlite-2.8.16-exit.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-db/sqlite/files/sqlite-2.8.16-exit.patch b/dev-db/sqlite/files/sqlite-2.8.16-exit.patch
new file mode 100644
index 000000000000..aaccb575e0a9
--- /dev/null
+++ b/dev-db/sqlite/files/sqlite-2.8.16-exit.patch
@@ -0,0 +1,12 @@
+temp.c:4:1: warning: incompatible implicit declaration of built-in function ‘exit’
+
+--- Makefile.in
++++ Makefile.in
+@@ -269,6 +269,7 @@
+ #
+ config.h:
+ echo '#include <stdio.h>' >temp.c
++ echo '#include <stdlib.h>' >>temp.c
+ echo 'int main(){printf(' >>temp.c
+ echo '"#define SQLITE_PTR_SZ %d",sizeof(char*));' >>temp.c
+ echo 'exit(0);}' >>temp.c