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