Fix for systems that don't have INET_ADDRSTRLEN.

This commit is contained in:
Peter Eisentraut 2003-01-06 09:58:36 +00:00
parent 6b39507498
commit 6e90803f90
4 changed files with 14 additions and 6 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.95 2003/01/06 03:18:26 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.96 2003/01/06 09:58:23 petere Exp $
*
*-------------------------------------------------------------------------
*/
@ -30,6 +30,7 @@
#include "libpq/hba.h"
#include "libpq/libpq.h"
#include "libpq/password.h"
#include "libpq/pqcomm.h"
#include "libpq/pqformat.h"
#include "miscadmin.h"
#include "storage/ipc.h"

View File

@ -29,7 +29,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.c,v 1.144 2003/01/06 03:18:26 momjian Exp $
* $Id: pqcomm.c,v 1.145 2003/01/06 09:58:23 petere Exp $
*
*-------------------------------------------------------------------------
*/
@ -69,7 +69,6 @@
#include <sys/stat.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#endif

View File

@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.302 2003/01/06 03:18:27 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.303 2003/01/06 09:58:36 petere Exp $
*
* NOTES
*
@ -72,7 +72,6 @@
#include <fcntl.h>
#include <time.h>
#include <sys/param.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <limits.h>

View File

@ -9,7 +9,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.h,v 1.74 2003/01/06 05:33:45 momjian Exp $
* $Id: pqcomm.h,v 1.75 2003/01/06 09:58:36 petere Exp $
*
*-------------------------------------------------------------------------
*/
@ -34,6 +34,15 @@
#endif /* not WIN32 */
#ifndef INET_ADDRSTRLEN
#define INET_ADDRSTRLEN 16
#endif
#ifndef INET6_ADDRSTRLEN
#define INET6_ADDRSTRLEN 46
#endif
#ifndef HAVE_STRUCT_SOCKADDR_UN
struct sockaddr_un
{