mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-05 18:23:03 +01:00
Check for strnlen and provide it if it is not found.
This commit is contained in:
@@ -84,4 +84,8 @@ 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
|
||||
|
||||
#endif // BITCOIN_COMPAT_H
|
||||
|
||||
Reference in New Issue
Block a user