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:17 -0400
commita919937f112eb2f548d5f9bd1b3a7298375e6380 (patch)
tree18248c56f3b16ddfd56b74b9c2e3f0bc4625b39e /src/include/port.h
parentce7fc4fbbca76dd39e4be31cfad72cf42adb0a76 (diff)
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 f56fc3ed2bf..2d1a427eaba 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -475,4 +475,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 */