From 6e90803f901b18750c9bbed5f0321fd9e82a88ff Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 6 Jan 2003 09:58:36 +0000 Subject: Fix for systems that don't have INET_ADDRSTRLEN. --- src/include/libpq/pqcomm.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h index 32bd1873ec1..7c476699f06 100644 --- a/src/include/libpq/pqcomm.h +++ b/src/include/libpq/pqcomm.h @@ -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 { -- cgit v1.2.3