diff options
author | Stig Bakken <ssb@php.net> | 1999-11-08 09:18:57 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 1999-11-08 09:18:57 +0000 |
commit | 63d47b7735967a6b7c6c8f31e3bdf379c969b5da (patch) | |
tree | b215b16324b606602c4b26b50ddc66bcdbb883a4 | |
parent | d1ecda53b73a0b9ac297558d9ed0a38b76b47491 (diff) | |
download | php-git-63d47b7735967a6b7c6c8f31e3bdf379c969b5da.tar.gz |
(PHP tempnam) now uses mkstemp() if available
@- tempnam() now uses mkstemp() if available (Stig)
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | main/php.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 0be23e80a0..8fc58b8a37 100644 --- a/configure.in +++ b/configure.in @@ -333,6 +333,7 @@ unsetenv \ usleep \ utime \ vsnprintf \ +mkstemp \ ) AC_REPLACE_FUNCS(strlcat strlcpy) diff --git a/main/php.h b/main/php.h index 104983efb4..a778c5dff6 100644 --- a/main/php.h +++ b/main/php.h @@ -168,6 +168,10 @@ typedef zval pval; extern char *strerror(int); #endif +#ifdef HAVE_MKSTEMP +# define mktemp mkstemp +#endif + #include "fopen-wrappers.h" #if APACHE /* apache httpd */ |