From 8752b5c882fb94f223b117153bdac024f1dfb25f Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Tue, 17 Feb 2015 16:15:01 -0500 Subject: 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. --- src/compat.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/compat.h') 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 -- cgit v1.2.3