summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2006-01-05 00:51:25 +0000
committerTom Lane2006-01-05 00:51:25 +0000
commit37cdf43eaa58ffc8a361cefc013917ff61c8bb3d (patch)
tree917a838be6ad7c7d52b06f02ee7bb82c08fe5af5 /src/include
parentfcacfc96a2e13e1abe920f4a94a2fc51b5853c71 (diff)
Add port support for unsetenv() in back branches. Needed for locale
environment fix.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/pg_config.h.in3
-rw-r--r--src/include/port.h6
2 files changed, 8 insertions, 1 deletions
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index 22765878856..5c755038389 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -527,6 +527,9 @@
/* Define to 1 if you have unix sockets. */
#undef HAVE_UNIX_SOCKETS
+/* Define to 1 if you have the `unsetenv' function. */
+#undef HAVE_UNSETENV
+
/* Define to 1 if you have the `utime' function. */
#undef HAVE_UTIME
diff --git a/src/include/port.h b/src/include/port.h
index d77dd652f15..15288acfc3b 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: port.h,v 1.14 2003/09/13 14:49:51 momjian Exp $
+ * $Id: port.h,v 1.14.2.1 2006/01/05 00:51:25 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -105,6 +105,10 @@ extern char *strdup(char const *);
extern long random(void);
#endif
+#ifndef HAVE_UNSETENV
+extern void unsetenv(const char *name);
+#endif
+
#ifndef HAVE_SRANDOM
extern void srandom(unsigned int seed);
#endif