aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2015-02-17 16:15:01 -0500
committerCory Fields <cory-nospam-@coryfields.com>2015-03-19 00:14:28 -0400
commit8752b5c882fb94f223b117153bdac024f1dfb25f (patch)
treed0f8f271c69c9ff66ad9a4f37b48f4abd8024a48 /src/compat.h
parent601327be8ca971895bef8f3e5cdde86ca220e8d6 (diff)
downloadbitcoin-8752b5c882fb94f223b117153bdac024f1dfb25f.tar.xz
0.10 fix for crashes on OSX 10.6
strnlen is available at build-time but not at runtime, causing a crash. 0.11 drops support for 10.6, so this is not needed in master.
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compat.h b/src/compat.h
index dffd4ecf52..477dd2bfeb 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -88,8 +88,6 @@ typedef u_int SOCKET;
#define THREAD_PRIORITY_ABOVE_NORMAL (-2)
#endif
-#if HAVE_DECL_STRNLEN == 0
-size_t strnlen( const char *start, size_t max_len);
-#endif // HAVE_DECL_STRNLEN
+size_t strnlen_int( const char *start, size_t max_len);
#endif // BITCOIN_COMPAT_H