From c72b3cf71a2e9eabbee8c6fa6819a1909478c212 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Mon, 2 Mar 2009 19:26:11 +0000 Subject: OpenBSD 4.4 compilation fixes. Does not deal with lack of -Wextra or -Wstrict-aliasing for lpu or hubbub. svn path=/trunk/netsurf/; revision=6673 --- utils/config.h | 3 ++- utils/utils.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/config.h b/utils/config.h index fd1cf43fa..a406e3f1e 100644 --- a/utils/config.h +++ b/utils/config.h @@ -25,7 +25,8 @@ #define HAVE_STRNDUP #if defined(__FreeBSD__) || (defined(__SRV4) && defined(__sun)) || \ - defined(__APPLE__) || defined(__HAIKU__) || defined(__BEOS__) + defined(__APPLE__) || defined(__HAIKU__) || defined(__BEOS__) \ + || defined(__OpenBSD__) /* FreeBSD and Solaris do not have this function, so * we implement it ourselves in util.c */ diff --git a/utils/utils.h b/utils/utils.h index e286de76f..f2cd2e0dd 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -82,8 +82,8 @@ void regcomp_wrapper(regex_t *preg, const char *regex, int cflags); void unicode_transliterate(unsigned int c, char **r); char *human_friendly_bytesize(unsigned long bytesize); const char *rfc1123_date(time_t t); -#if !(defined(_GNU_SOURCE) || defined(__NetBSD__)) || defined(riscos) || \ - defined(__APPLE__) +#if !(defined(_GNU_SOURCE) || defined(__NetBSD__) || defined(__OpenBSD__)) \ + || defined(riscos) || defined(__APPLE__) char *strcasestr(const char *haystack, const char *needle); #endif unsigned int wallclock(void); -- cgit v1.2.3