From 7c153e6642a2f08e4613b4b9bc21fa45579ab0ca Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Thu, 13 Aug 2009 13:28:16 +0000 Subject: [PATCH] Fix build for OpenBSD and NetBSD --- goldlib/gall/gstrall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goldlib/gall/gstrall.h b/goldlib/gall/gstrall.h index 70a36a1..68b918c 100644 --- a/goldlib/gall/gstrall.h +++ b/goldlib/gall/gstrall.h @@ -134,7 +134,7 @@ inline char* strskip_wht(char* p) { while(*p and isspace(*p)) p++; return p; } inline const char* strskip_digits(const char* p) { return p+strspn(p, "0123456789"); } inline char* strskip_digits(char* p) { return p+strspn(p, "0123456789"); } -#if defined(_MSC_VER) || (defined(__GNUC__) && (defined(__WIN32__) || defined(__SUNOS__))) || defined(__WATCOMC__) || defined(__FreeBSD__) +#if defined(_MSC_VER) || (defined(__GNUC__) && (defined(__WIN32__) || defined(__SUNOS__))) || defined(__WATCOMC__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) inline char * stpcpy(char* dest, const char* src) { while ((*dest++ = *src++) != NUL) {} return --dest;