mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
From: t-ishii@sra.co.jp
Ok. I have decided to use: #if defined(sun) && if defined(sparc) && !defined(__svr4) instead of defined(sunos4). interfaces/libpq/libpq-fe.h and include/c.h have been modified(see included patches). Another porblems I have found are: o SunOS lacks strtoul(). to fix this I stole strtoul.c from FreeBSD and place it under backend/port. necessary modifications have been also made to backend/port/Makefile.in, include/config.h.in and configure.in (see included patches).
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: libpq-fe.h,v 1.25 1998/01/26 01:42:37 scrappy Exp $
|
||||
* $Id: libpq-fe.h,v 1.26 1998/02/24 06:04:55 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -349,7 +349,7 @@ extern "C"
|
||||
#define palloc malloc
|
||||
#define pfree free
|
||||
|
||||
#if defined(sunos4)
|
||||
#if defined(sun) && defined(sparc) && !defined(__svr4)
|
||||
extern char *sys_errlist[];
|
||||
#define strerror(A) (sys_errlist[(A)])
|
||||
#endif /* sunos4 */
|
||||
|
Reference in New Issue
Block a user