cvs: /php3 config.h.in configure.in php.h
| From: | Stig Bakken | Date: | Mon, 08 Nov 1999 09:09:42 +0000 |
| Subject: | cvs: /php3 config.h.in configure.in php.h | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-12212@lists.php.net to get a copy of this message | ||
ssb Mon Nov 8 04:09:42 1999 EDT
Modified files:
/php3 config.h.in configure.in php.h
Log:
Use mkstemp() instead of mktemp() when available.
Index: php3/config.h.in
diff -u php3/config.h.in:1.196 php3/config.h.in:1.197
--- php3/config.h.in:1.196 Sun Oct 24 12:42:10 1999
+++ php3/config.h.in Mon Nov 8 04:09:40 1999
@@ -468,6 +468,9 @@
/* Define if you have the mkfifo function. */
#undef HAVE_MKFIFO
+/* Define if you have the mkstemp function. */
+#undef HAVE_MKSTEMP
+
/* Define if you have the putenv function. */
#undef HAVE_PUTENV
Index: php3/configure.in
diff -u php3/configure.in:1.470 php3/configure.in:1.471
--- php3/configure.in:1.470 Thu Nov 4 15:45:46 1999
+++ php3/configure.in Mon Nov 8 04:09:40 1999
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.470 1999/11/04 20:45:46 rasmus Exp $
+dnl $Id: configure.in,v 1.471 1999/11/08 09:09:40 ssb Exp $
dnl Process this file with autoconf to produce a configure script.
AC_INIT(main.c)
@@ -252,7 +252,7 @@
dnl Checks for library functions.
AC_FUNC_VPRINTF
-AC_CHECK_FUNCS(memcpy memmove strdup strerror strcasecmp strstr flock lockf putenv tempnam usleep
setlocale gettimeofday setvbuf srand48 lrand48 srandom random link symlink regcomp getlogin cuserid
vsnprintf gcvt utime crypt setitimer rint unsetenv strftime setsockopt tzset statvfs statfs
inet_aton shutdown truncate getpgid getsid getrlimit snprintf ctermid setsid mkfifo)
+AC_CHECK_FUNCS(memcpy memmove strdup strerror strcasecmp strstr flock lockf putenv tempnam usleep
setlocale gettimeofday setvbuf srand48 lrand48 srandom random link symlink regcomp getlogin cuserid
vsnprintf gcvt utime crypt setitimer rint unsetenv strftime setsockopt tzset statvfs statfs
inet_aton shutdown truncate getpgid getsid getrlimit snprintf ctermid setsid mkfifo mkstemp)
AC_FUNC_UTIME_NULL
AC_FUNC_ALLOCA
AC_BROKEN_SPRINTF
Index: php3/php.h
diff -u php3/php.h:1.62 php3/php.h:1.63
--- php3/php.h:1.62 Wed Jul 28 12:54:53 1999
+++ php3/php.h Mon Nov 8 04:09:40 1999
@@ -28,7 +28,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php.h,v 1.62 1999/07/28 16:54:53 rasmus Exp $ */
+/* $Id: php.h,v 1.63 1999/11/08 09:09:40 ssb Exp $ */
#ifndef _PHP_H
#define _PHP_H
@@ -208,6 +208,10 @@
#ifndef HAVE_STRERROR
extern char *strerror(int);
+#endif
+
+#ifdef HAVE_MKSTEMP
+# define mktemp mkstemp
#endif
#include "fopen-wrappers.h"