summaryrefslogtreecommitdiff
path: root/src/include/port.h
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2014-06-14 09:41:13 -0400
committerNoah Misch <noah@leadboat.com>2014-06-14 09:41:13 -0400
commit9e6b1bf258170e62dac555fc82ff0536dfe01d29 (patch)
tree88aaf48138222a5fe9fb63662708ed174b30ac62 /src/include/port.h
parent0ef0b6784c7d7258cae314cb46558873edaf9c0a (diff)
downloadpostgresql-9e6b1bf258170e62dac555fc82ff0536dfe01d29.tar.gz
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.
Diffstat (limited to 'src/include/port.h')
-rw-r--r--src/include/port.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/port.h b/src/include/port.h
index c9226f3dac..3d97481834 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -462,6 +462,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);