summaryrefslogtreecommitdiff
path: root/games/warzone2100/patches/patch-ad
blob: 13465f4caa7012920ababc6027057dbbb49b5b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ad,v 1.1.1.1 2009/02/15 16:05:43 jmcneill Exp $

--- lib/framework/strlfuncs.h.orig	2008-12-21 13:41:15.000000000 -0500
+++ lib/framework/strlfuncs.h
@@ -22,6 +22,9 @@
 #include <stddef.h>
 #include <assert.h>
 
+#if defined(__NetBSD__)
+#include <string.h>
+#else
 /** 
  *	A safer variant of \c strncpy and its completely unsafe variant \c strcpy.
  *	Copy src to string dst of size siz.  At most siz-1 characters
@@ -105,6 +108,7 @@ static inline size_t strlcat(char *WZ_DE
 
 	return(dlen + (s - src));        /* count does not include NUL */
 }
+#endif
 
 /* Static array versions of common string functions. Safer because one less parameter to screw up. 
  * Can only be used on strings longer than the length of a pointer, because we use this for debugging. */