summaryrefslogtreecommitdiff
path: root/utils/utils.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2007-01-29 22:27:15 +0000
committerJames Bursa <james@netsurf-browser.org>2007-01-29 22:27:15 +0000
commita0b6661eb6980095f24d6317a31404596d70ba8c (patch)
treeb91c612d48815c03d05ec0466c543d85d72628c3 /utils/utils.h
parentb76283f3d52985abd24081bcbb9196ec440e10af (diff)
downloadnetsurf-a0b6661eb6980095f24d6317a31404596d70ba8c.tar.gz
netsurf-a0b6661eb6980095f24d6317a31404596d70ba8c.tar.bz2
Make GTK build compile on FreeBSD.
svn path=/trunk/netsurf/; revision=3154
Diffstat (limited to 'utils/utils.h')
-rw-r--r--utils/utils.h6
1 files changed, 5 insertions, 1 deletions
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 <bursa@users.sourceforge.net>
+ * Copyright 2004-2007 James Bursa <bursa@users.sourceforge.net>
* Copyright 2004 John Tytgat <John.Tytgat@aaug.net>
*/
@@ -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);