mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -345,6 +345,9 @@
|
||||
/* Define to 1 if the system has the type `MINIDUMP_TYPE'. */
|
||||
#undef HAVE_MINIDUMP_TYPE
|
||||
|
||||
/* Define to 1 if you have the `mkdtemp' function. */
|
||||
#undef HAVE_MKDTEMP
|
||||
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||
#undef HAVE_NETINET_IN_H
|
||||
|
||||
|
@@ -261,6 +261,9 @@
|
||||
/* Define to 1 if the system has the type `MINIDUMP_TYPE'. */
|
||||
#define HAVE_MINIDUMP_TYPE 1
|
||||
|
||||
/* Define to 1 if you have the `mkdtemp' function. */
|
||||
/* #undef HAVE_MKDTEMP */
|
||||
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||
#define HAVE_NETINET_IN_H 1
|
||||
|
||||
|
@@ -476,6 +476,9 @@ extern int pg_check_dir(const char *dir);
|
||||
/* port/pgmkdirp.c */
|
||||
extern int pg_mkdir_p(char *path, int omode);
|
||||
|
||||
/* port/mkdtemp.c */
|
||||
extern char *mkdtemp(char *path);
|
||||
|
||||
/* port/pqsignal.c */
|
||||
typedef void (*pqsigfunc) (int signo);
|
||||
extern pqsigfunc pqsignal(int signo, pqsigfunc func);
|
||||
|
Reference in New Issue
Block a user