diff options
author | Tom Lane | 2006-09-27 15:41:24 +0000 |
---|---|---|
committer | Tom Lane | 2006-09-27 15:41:24 +0000 |
commit | 5d5ac3c45e9b110772f122e99ffe83328c31417a (patch) | |
tree | 6c8c9993ceab231c8422a446224815b2729ec3cf | |
parent | c193e4e153f6f4d6e7c62694d19321f120270106 (diff) |
Remove separate strdup.h header file; it's redundant with port.h.
-rw-r--r-- | src/bin/pg_dump/common.c | 4 | ||||
-rw-r--r-- | src/bin/pg_dump/pg_backup_db.c | 3 | ||||
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 4 | ||||
-rw-r--r-- | src/bin/pg_dump/pg_dumpall.c | 3 | ||||
-rw-r--r-- | src/bin/pg_dump/pg_restore.c | 4 | ||||
-rw-r--r-- | src/bin/psql/common.c | 3 | ||||
-rw-r--r-- | src/include/strdup.h | 8 | ||||
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 4 | ||||
-rw-r--r-- | src/interfaces/libpq/fe-secure.c | 4 | ||||
-rw-r--r-- | src/port/strdup.c | 2 |
10 files changed, 0 insertions, 39 deletions
diff --git a/src/bin/pg_dump/common.c b/src/bin/pg_dump/common.c index d7eada3469..d4157aea42 100644 --- a/src/bin/pg_dump/common.c +++ b/src/bin/pg_dump/common.c @@ -24,10 +24,6 @@ #include <ctype.h> -#ifndef HAVE_STRDUP -#include "strdup.h" -#endif - /* * Variables for mapping DumpId to DumpableObject diff --git a/src/bin/pg_dump/pg_backup_db.c b/src/bin/pg_dump/pg_backup_db.c index 3c81e1c69e..4b5baf14e6 100644 --- a/src/bin/pg_dump/pg_backup_db.c +++ b/src/bin/pg_dump/pg_backup_db.c @@ -21,9 +21,6 @@ #include <termios.h> #endif -#ifndef HAVE_STRDUP -#include "strdup.h" -#endif static const char *modulename = gettext_noop("archiver (db)"); diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 373f5530cb..4b05711fdf 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -34,10 +34,6 @@ #include <termios.h> #endif -#ifndef HAVE_STRDUP -#include "strdup.h" -#endif - #include "getopt_long.h" #ifndef HAVE_INT_OPTRESET diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c index 85a4f48ea6..cac6c25c72 100644 --- a/src/bin/pg_dump/pg_dumpall.c +++ b/src/bin/pg_dump/pg_dumpall.c @@ -19,9 +19,6 @@ #ifdef ENABLE_NLS #include <locale.h> #endif -#ifndef HAVE_STRDUP -#include "strdup.h" -#endif #include "getopt_long.h" diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c index c21f8bf1aa..4a99f814b6 100644 --- a/src/bin/pg_dump/pg_restore.c +++ b/src/bin/pg_dump/pg_restore.c @@ -43,10 +43,6 @@ #include <ctype.h> -#ifndef HAVE_STRDUP -#include "strdup.h" -#endif - #ifdef HAVE_TERMIOS_H #include <termios.h> #endif diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 48f8bb1970..b87478874b 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -9,9 +9,6 @@ #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 index 3b379360ba..0000000000 --- a/src/include/strdup.h +++ /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 *); diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index f400b65f96..703597b98e 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -22,10 +22,6 @@ #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" diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c index 40fdaf8727..ec50801cd7 100644 --- a/src/interfaces/libpq/fe-secure.c +++ b/src/interfaces/libpq/fe-secure.c @@ -109,10 +109,6 @@ #endif #endif -#ifndef HAVE_STRDUP -#include "strdup.h" -#endif - #ifdef USE_SSL #include <openssl/ssl.h> #endif /* USE_SSL */ diff --git a/src/port/strdup.c b/src/port/strdup.c index 40cd435d41..ce838526af 100644 --- a/src/port/strdup.c +++ b/src/port/strdup.c @@ -15,8 +15,6 @@ #include "c.h" -#include "strdup.h" - char * strdup(const char *string) |