summaryrefslogtreecommitdiff
path: root/app-emulation/gxemul/files/0.6.0-fix-mkstemp-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/gxemul/files/0.6.0-fix-mkstemp-test.patch')
-rw-r--r--app-emulation/gxemul/files/0.6.0-fix-mkstemp-test.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/app-emulation/gxemul/files/0.6.0-fix-mkstemp-test.patch b/app-emulation/gxemul/files/0.6.0-fix-mkstemp-test.patch
new file mode 100644
index 000000000000..88883309b909
--- /dev/null
+++ b/app-emulation/gxemul/files/0.6.0-fix-mkstemp-test.patch
@@ -0,0 +1,10 @@
+--- configure 2012-11-03 09:08:09.373041529 +0000
++++ configure.new 2012-11-03 09:08:31.999585979 +0000
+@@ -705,6 +705,7 @@
+ # mkstemp missing?
+ printf "checking for mkstemp... "
+ printf "#include <unistd.h>
++#include <stdlib.h>
+ int main(int argc, char *argv[]) { int x; char *y = \"abc\";
+ x = mkstemp(y); return 0;}\n" > _tests.cc
+ $CXX $CXXFLAGS _tests.cc -o _tests 2> /dev/null