summarylogtreecommitdiffstats
path: root/fix-implicit-fn-decl-Makefile.in.patch
blob: 3a50d2c0373852d6abdf6613fad7643653133983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- Makefile.in.sav	2022-09-13 11:29:58.580057197 +0200
+++ Makefile.in	2022-09-13 11:30:01.280052996 +0200
@@ -272,10 +272,11 @@
 # configure the config.h file.
 #
 config.h:	
-	echo '#include <stdio.h>' >temp.c
-	echo 'int main(){printf(' >>temp.c
+	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
+	echo 'exit(0);}'                                  >>temp.c
 	$(BCC) -o temp temp.c
 	./temp >config.h
 	echo >>config.h