1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Add mkdtemp() to libpgport.

This function is pervasive on free software operating systems; import
NetBSD's implementation.  Back-patch to 8.4, like the commit that will
harness it.
This commit is contained in:
Noah Misch
2014-06-14 09:41:13 -04:00
parent 0ef0b6784c
commit 9e6b1bf258
7 changed files with 317 additions and 2 deletions

13
configure vendored
View File

@ -11650,6 +11650,19 @@ esac
fi
ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
if test "x$ac_cv_func_mkdtemp" = xyes; then :
$as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
else
case " $LIBOBJS " in
*" mkdtemp.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
;;
esac
fi
ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
if test "x$ac_cv_func_random" = xyes; then :
$as_echo "#define HAVE_RANDOM 1" >>confdefs.h