From e98df1ab2955f9c2d57e7f97db569c5ac44375a3 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Fri, 20 Mar 1998 04:02:57 +0000
Subject: [PATCH] In libpq-fe.h:  #if defined(sun) && defined(sparc) &&
 !defined(__svr4) 	extern char *sys_errlist[]; #define strerror(A)
 (sys_errlist[(A)]) #endif                                                  /*
 sunos4 */

is picked up by Solaris when the above is intended only for SunOS.

Fix Solaris.  Albert Chin-A-Young
---
 src/interfaces/libpq/libpq-fe.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h
index 4d801efd153..4fe8347a046 100644
--- a/src/interfaces/libpq/libpq-fe.h
+++ b/src/interfaces/libpq/libpq-fe.h
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: libpq-fe.h,v 1.27 1998/02/26 04:45:15 momjian Exp $
+ * $Id: libpq-fe.h,v 1.28 1998/03/20 04:02:57 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -349,7 +349,7 @@ extern		"C"
 #define palloc malloc
 #define pfree free
 
-#if defined(sun) && defined(sparc) && !defined(__svr4)
+#if defined(sun) && defined(sparc) && !defined(__SVR4)
 	extern char *sys_errlist[];
 #define strerror(A) (sys_errlist[(A)])
 #endif							/* sunos4 */
-- 
GitLab