Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / emulators / gxemul / patches / patch-configure
blobe219e2f4433815259bb8fe7fdc103cd3ccadf6de
1 $NetBSD$
3 Fix the check to pickup mkstemp() on at least NetBSD
5 --- configure.orig      2012-07-15 22:26:52.000000000 +0000
6 +++ configure
7 @@ -705,7 +705,8 @@ rm -f _tests.cc _tests.o _tests
8  #  mkstemp missing?
9  printf "checking for mkstemp... "
10  printf "#include <unistd.h>
11 -int main(int argc, char *argv[]) { int x; char *y = \"abc\";
12 +#include <stdlib.h>
13 +int main(int argc, char *argv[]) { int x; char y[4] = \"abc\";
14  x = mkstemp(y); return 0;}\n" > _tests.cc
15  $CXX $CXXFLAGS _tests.cc -o _tests 2> /dev/null
16  if [ ! -x _tests ]; then