summaryrefslogtreecommitdiff
path: root/src/include/libpq
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2003-01-06 09:58:36 +0000
committerPeter Eisentraut <peter_e@gmx.net>2003-01-06 09:58:36 +0000
commit6e90803f901b18750c9bbed5f0321fd9e82a88ff (patch)
tree12c619e7a1d2568470c29f48f87033eef6a0d3b0 /src/include/libpq
parent6b39507498c259bf76a64c3a9100f89cfe30732f (diff)
downloadpostgresql-6e90803f901b18750c9bbed5f0321fd9e82a88ff.tar.gz
Fix for systems that don't have INET_ADDRSTRLEN.
Diffstat (limited to 'src/include/libpq')
-rw-r--r--src/include/libpq/pqcomm.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h
index 32bd1873ec..7c476699f0 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
{