Commit 712e77e3 authored by Marc G. Fournier's avatar Marc G. Fournier

Various fixes for string.h vs strings.h

From: Frank Ridderbusch <ridderbusch.pad@sni.de>
parent 18e1f033
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.37 1998/02/19 14:27:33 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.38 1998/02/24 04:01:53 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -34,9 +34,14 @@ ...@@ -34,9 +34,14 @@
* the postgres backend. * the postgres backend.
* *
*/ */
#include "postgres.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #if defined(HAVE_STRING_H)
#include <strings.h> # include <string.h>
#else
# include <strings.h>
#endif
#include <signal.h> #include <signal.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
...@@ -56,13 +61,11 @@ ...@@ -56,13 +61,11 @@
#endif /* SOMAXCONN */ #endif /* SOMAXCONN */
#endif /* linux */ #endif /* linux */
#include <postgres.h> #include "miscadmin.h"
#include "libpq/pqsignal.h"
#include <miscadmin.h> #include "libpq/auth.h"
#include <libpq/pqsignal.h> #include "libpq/libpq.h" /* where the declarations go */
#include <libpq/auth.h> #include "storage/ipc.h"
#include <libpq/libpq.h> /* where the declarations go */
#include <storage/ipc.h>
/* ---------------- /* ----------------
* declarations * declarations
......
/* /*
* @(#) pg_passwd.c 1.8 09:13:16 97/07/02 Y. Ichikawa * @(#) pg_passwd.c 1.8 09:13:16 97/07/02 Y. Ichikawa
*/ */
#include "postgres.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #if defined(HAVE_STRING_H)
#include <strings.h> # include <string.h>
#else
# include <strings.h>
#endif
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <time.h> #include <time.h>
#include <ctype.h> #include <ctype.h>
#define issaltchar(c) (isalnum(c) || (c) == '.' || (c) == '/') #define issaltchar(c) (isalnum(c) || (c) == '.' || (c) == '/')
#include "postgres.h"
#ifdef HAVE_TERMIOS_H #ifdef HAVE_TERMIOS_H
#include <termios.h> #include <termios.h>
#endif #endif
......
This diff is collapsed.
...@@ -423,6 +423,7 @@ AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h) ...@@ -423,6 +423,7 @@ AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
AC_CHECK_HEADERS(sys/resource.h netdb.h arpa/inet.h getopt.h) AC_CHECK_HEADERS(sys/resource.h netdb.h arpa/inet.h getopt.h)
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h) AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
AC_CHECK_HEADERS(readline/history.h ieeefp.h fp_class.h netinet/in.h) AC_CHECK_HEADERS(readline/history.h ieeefp.h fp_class.h netinet/in.h)
AC_CHECK_HEADERS(string.h strings.h)
dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST AC_C_CONST
......
...@@ -14,6 +14,12 @@ ...@@ -14,6 +14,12 @@
* The following is set using configure. * The following is set using configure.
*/ */
/* Set to 1 if you have <string.h> */
#undef HAVE_STRING_H
/* Set to 1 if you have <strings.h> */
#undef HAVE_STRINGS_H
/* Set to 1 if you have <getopt.h> */ /* Set to 1 if you have <getopt.h> */
#undef HAVE_GETOPT_H #undef HAVE_GETOPT_H
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
/* (C) Michael Meskes <meskes@debian.org> Feb 5th, 1998 */ /* (C) Michael Meskes <meskes@debian.org> Feb 5th, 1998 */
/* Placed under the same copyright as PostgresSQL */ /* Placed under the same copyright as PostgresSQL */
#include "postgres.h"
#include <stdio.h> #include <stdio.h>
#if HAVE_GETOPT_H #if HAVE_GETOPT_H
# include <getopt.h> # include <getopt.h>
...@@ -9,7 +11,11 @@ ...@@ -9,7 +11,11 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include <strings.h> #if defined(HAVE_STRING_H)
# include <string.h>
#else
# include <strings.h>
#endif
#include "extern.h" #include "extern.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment