summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2004-05-05 21:18:29 +0000
committerTom Lane2004-05-05 21:18:29 +0000
commit9e16195f3f7f3cf7815200869be936bfcecfa333 (patch)
tree01ca518fde7c26405307abac5926ec0e1e9013a0 /src/include
parentdadce6509a17d510c62414e033e2491ed50a9fcb (diff)
Second try at a portable unsetenv().
Diffstat (limited to 'src/include')
-rw-r--r--src/include/c.h6
-rw-r--r--src/include/pg_config.h.in3
2 files changed, 8 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 129634f5bb6..b3ee88968d0 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/c.h,v 1.162 2004/04/30 20:47:33 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.163 2004/05/05 21:18:29 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -720,6 +720,10 @@ extern int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
#define memmove(d, s, c) bcopy(s, d, c)
#endif
+#ifndef HAVE_UNSETENV
+extern void unsetenv(const char *name);
+#endif
+
#ifndef DLLIMPORT
#define DLLIMPORT /* no special DLL markers on most ports */
#endif
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index 7722087da0c..aea533ad83f 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -530,6 +530,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