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
This commit is contained in:
Bruce Momjian 1998-03-20 04:02:57 +00:00
parent f6c0fc1959
commit e98df1ab29
1 changed files with 2 additions and 2 deletions

View File

@ -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 */