From 96316211c3a1300b304d452e09c726fb775aa502 Mon Sep 17 00:00:00 2001 From: Marc G. Fournier Date: Tue, 24 Feb 1998 06:04:55 +0000 Subject: 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). --- src/include/c.h | 4 ++-- src/include/config.h.in | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/c.h b/src/include/c.h index 0da7efdf57d..fbb6dba546b 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -7,7 +7,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: c.h,v 1.34 1998/02/12 01:50:01 momjian Exp $ + * $Id: c.h,v 1.35 1998/02/24 06:04:35 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -792,7 +792,7 @@ extern char *form(const char *fmt,...); #endif /* hpux */ #endif -#if defined(sunos4) +#if defined(sun) && defined(sparc) && !defined(__svr4) #define memmove(d, s, l) bcopy(s, d, l) #include #endif diff --git a/src/include/config.h.in b/src/include/config.h.in index 3d37bbc9fb1..f1f1dc1a8e6 100644 --- a/src/include/config.h.in +++ b/src/include/config.h.in @@ -162,6 +162,9 @@ extern int strcasecmp(char *s1, char *s2); /* Set to 1 if you have strtol() */ #undef HAVE_STRTOL +/* Set to 1 if you have strtoul() */ +#undef HAVE_STRTOUL + /* Set to 1 if you have strdup() */ #undef HAVE_STRDUP #ifndef HAVE_STRDUP -- cgit v1.2.3