]> granicus.if.org Git - postgresql/commitdiff
Remove separate strdup.h header file; it's redundant with port.h.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Sep 2006 15:41:24 +0000 (15:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Sep 2006 15:41:24 +0000 (15:41 +0000)
src/bin/pg_dump/common.c
src/bin/pg_dump/pg_backup_db.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/pg_restore.c
src/bin/psql/common.c
src/include/strdup.h [deleted file]
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-secure.c
src/port/strdup.c

index fc737d59ac251db4d293fae81ab92d7e3c5dfa99..f4b4a1e5bbb0ae6558a863c666b6282900082172 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/bin/pg_dump/common.c,v 1.92 2006/08/01 18:05:04 momjian Exp $
+ *       $PostgreSQL: pgsql/src/bin/pg_dump/common.c,v 1.93 2006/09/27 15:41:23 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
 
 #include <ctype.h>
 
-#ifndef HAVE_STRDUP
-#include "strdup.h"
-#endif
-
 
 /*
  * Variables for mapping DumpId to DumpableObject
index a5ca77c545b70dc71e35ffc75200ca2c773d4b5e..362e053165e9675a7b098bfade647e91b54551a2 100644 (file)
@@ -5,7 +5,7 @@
  *     Implements the basic DB functions used by the archiver.
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.73 2006/07/18 17:42:00 momjian Exp $
+ *       $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.74 2006/09/27 15:41:23 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -21,9 +21,6 @@
 #include <termios.h>
 #endif
 
-#ifndef HAVE_STRDUP
-#include "strdup.h"
-#endif
 
 static const char *modulename = gettext_noop("archiver (db)");
 
index fbf131f5779f695410b982ea30a4b42e421c3f02..8e243d0d4178485258abcfab38dbf5eb5210d438 100644 (file)
@@ -12,7 +12,7 @@
  *     by PostgreSQL
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.448 2006/09/22 21:39:57 tgl Exp $
+ *       $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.449 2006/09/27 15:41:23 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <termios.h>
 #endif
 
-#ifndef HAVE_STRDUP
-#include "strdup.h"
-#endif
-
 #include "getopt_long.h"
 
 #ifndef HAVE_INT_OPTRESET
index 190863ae34959c580db66b47103a30fda152bdda..2a18d2cfe2aa00ec4185e10040bfc5ecc7d77f1a 100644 (file)
@@ -6,7 +6,7 @@
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  *
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.81 2006/07/14 14:52:26 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.82 2006/09/27 15:41:23 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -19,9 +19,6 @@
 #ifdef ENABLE_NLS
 #include <locale.h>
 #endif
-#ifndef HAVE_STRDUP
-#include "strdup.h"
-#endif
 
 #include "getopt_long.h"
 
index 474973ffda9ab0c72878762b32f2d87e67d48c91..1625dc49d163df22c0c94c00d88f26b887a9b98c 100644 (file)
@@ -34,7 +34,7 @@
  *
  *
  * IDENTIFICATION
- *             $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.80 2006/08/01 18:21:44 momjian Exp $
+ *             $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.81 2006/09/27 15:41:23 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
 
 #include <ctype.h>
 
-#ifndef HAVE_STRDUP
-#include "strdup.h"
-#endif
-
 #ifdef HAVE_TERMIOS_H
 #include <termios.h>
 #endif
index 81323ad0d63dcbe8b548492ec97cbb9ea64b1533..ded8ecf2b1cc0bbfb84d178ebf34f57a16bb2957 100644 (file)
@@ -3,15 +3,12 @@
  *
  * Copyright (c) 2000-2006, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.128 2006/08/29 22:48:55 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.129 2006/09/27 15:41:23 tgl Exp $
  */
 #include "postgres_fe.h"
 #include "common.h"
 
 #include <ctype.h>
-#ifndef HAVE_STRDUP
-#include <strdup.h>
-#endif
 #include <signal.h>
 #ifndef WIN32
 #include <sys/time.h>
diff --git a/src/include/strdup.h b/src/include/strdup.h
deleted file mode 100644 (file)
index 3b37936..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/* This is the prototype for the strdup() function which is distributed
-   with Postgres.  That strdup() is only needed on those systems that
-   don't already have strdup() in their system libraries.
-
-   The Postgres strdup() is in src/port/strdup.c.
-*/
-
-extern char *strdup(char const *);
index f69539d74781a242b419f67fa19a7b02f1a8bea9..0dca43803f1bec78164c2cd0b57114a1bb1b4548 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.335 2006/09/15 21:34:23 tgl Exp $
+ *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.336 2006/09/27 15:41:24 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <time.h>
 #include <unistd.h>
 
-#ifndef HAVE_STRDUP
-#include "strdup.h"
-#endif
-
 #include "libpq-fe.h"
 #include "libpq-int.h"
 #include "fe-auth.h"
index 91315e379040f38e81234aac40c3de6c728a5be3..d886179f6d2365ee4243b3927ba260a02025b29b 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.86 2006/09/04 14:57:27 petere Exp $
+ *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.87 2006/09/27 15:41:24 tgl Exp $
  *
  * NOTES
  *       [ Most of these notes are wrong/obsolete, but perhaps not all ]
 #endif
 #endif
 
-#ifndef HAVE_STRDUP
-#include "strdup.h"
-#endif
-
 #ifdef USE_SSL
 #include <openssl/ssl.h>
 #endif   /* USE_SSL */
index 75c6321709cec4400e989adcea97a517157a9225..b7c87a4a35e988cc876dad62c1d1315175192703 100644 (file)
@@ -8,15 +8,13 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/port/strdup.c,v 1.11 2006/07/14 04:59:30 momjian Exp $
+ *       $PostgreSQL: pgsql/src/port/strdup.c,v 1.12 2006/09/27 15:41:24 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
 
 #include "c.h"
 
-#include "strdup.h"
-
 
 char *
 strdup(const char *string)