Line 0
Link Here
|
|
|
1 |
--- net-p2p/namecoin/files/patch-src__strlcpy.h (revision 0) |
2 |
+++ net-p2p/namecoin/files/patch-src__strlcpy.h (working copy) |
3 |
@@ -0,0 +1,20 @@ |
4 |
+--- src/strlcpy.h.orig 2015-08-24 00:28:33 UTC |
5 |
++++ src/strlcpy.h |
6 |
+@@ -15,6 +15,10 @@ |
7 |
+ */ |
8 |
+ #ifndef BITCOIN_STRLCPY_H |
9 |
+ #define BITCOIN_STRLCPY_H |
10 |
++ |
11 |
++#if defined(__FreeBSD__) && (__FreeBSD_version >= 330000) |
12 |
++#include <string.h> |
13 |
++#else |
14 |
+ /* |
15 |
+ * Copy src to string dst of size siz. At most siz-1 characters |
16 |
+ * will be copied. Always NUL terminates (unless siz == 0). |
17 |
+@@ -83,4 +87,6 @@ inline size_t strlcat(char *dst, const c |
18 |
+ |
19 |
+ return(dlen + (s - src)); /* count does not include NUL */ |
20 |
+ } |
21 |
++#endif /* FreeBSD */ |
22 |
++ |
23 |
+ #endif |