From a0b6661eb6980095f24d6317a31404596d70ba8c Mon Sep 17 00:00:00 2001 From: James Bursa Date: Mon, 29 Jan 2007 22:27:15 +0000 Subject: Make GTK build compile on FreeBSD. svn path=/trunk/netsurf/; revision=3154 --- utils/utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'utils/utils.h') diff --git a/utils/utils.h b/utils/utils.h index 3e5ed6318..cfc7d8edc 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -2,7 +2,7 @@ * This file is part of NetSurf, http://netsurf-browser.org/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license - * Copyright 2004 James Bursa + * Copyright 2004-2007 James Bursa * Copyright 2004 John Tytgat */ @@ -56,6 +56,10 @@ void unicode_transliterate(unsigned int c, char **r); char *human_friendly_bytesize(unsigned long bytesize); const char *rfc1123_date(time_t t); char *strcasestr(const char *haystack, const char *needle); +#ifdef __FreeBSD__ +/* FreeBSD lacks strndup */ +char *strndup(const char *s, size_t n); +#endif /* Platform specific functions */ void die(const char * const error); -- cgit v1.2.3