mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +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:
@@ -351,6 +351,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
|
||||
|
||||
|
@@ -497,4 +497,7 @@ 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);
|
||||
|
||||
#endif /* PG_PORT_H */
|
||||
|
Reference in New Issue
Block a user