-
-
Save anonymous/29520a3c47d7b3d1d14c14db415de9c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/platform/memmem.h b/src/platform/memmem.h | |
index 0d0bb18..e56ce3c 100644 | |
--- a/src/platform/memmem.h | |
+++ b/src/platform/memmem.h | |
@@ -5,7 +5,7 @@ | |
* Windows, does not include any native memmem | |
* MacOS has a memmem but is slower and originates from FreeBSD dated to 2005 */ | |
-#if defined(_WIN32) || defined(__APPLE__) || defined(__Darwin__) | |
+#if defined(_WIN32) || defined(__APPLE__) || defined(__Darwin__) || defined(__sun) | |
#include "../3rdparty/freebsd/memmem.c" | |
#else | |
/* On systems that use glibc, you must define _GNU_SOURCE before including string.h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment