Commit 892778ee84e741f111b103570854ff37b110f74d

Vicent Marti 2014-04-29T05:02:38

Merge pull request #2309 from jacquesg/midnightbsd MidnightBSD may also not have strnlen

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/strnlen.h b/src/strnlen.h
index 007da2e..fdd7fe3 100644
--- a/src/strnlen.h
+++ b/src/strnlen.h
@@ -7,7 +7,7 @@
 #ifndef INCLUDE_strlen_h__
 #define INCLUDE_strlen_h__
 
-#if defined(__MINGW32__) || defined(__sun) || defined(__APPLE__)
+#if defined(__MINGW32__) || defined(__sun) || defined(__APPLE__) || defined(__MidnightBSD__)
 #   define NO_STRNLEN
 #endif