about summary refs log tree commit diff
path: root/include/android-ashmem.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-07-15 09:42:04 +0200
committerGitHub <noreply@github.com>2023-07-15 09:42:04 +0200
commit7f17a94349830a54d2c899f56b149c0d7f9ffb9c (patch)
tree7ec0d2b73ca236c73d8d2b337396f320bcf1728d /include/android-ashmem.h
parent497ff5ff7962ee492fef315227366d658c637ab2 (diff)
parent2b8e528a3b5f44df590b8f727983d142857d0433 (diff)
downloadafl++-7f17a94349830a54d2c899f56b149c0d7f9ffb9c.tar.gz
Merge pull request #1798 from AFLplusplus/dev
push to stable
Diffstat (limited to 'include/android-ashmem.h')
-rw-r--r--include/android-ashmem.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/android-ashmem.h b/include/android-ashmem.h
index 1bfd3220..065c213b 100644
--- a/include/android-ashmem.h
+++ b/include/android-ashmem.h
@@ -2,7 +2,9 @@
   #ifndef _ANDROID_ASHMEM_H
     #define _ANDROID_ASHMEM_H
 
-    #define _GNU_SOURCE
+    #ifndef _GNU_SOURCE
+      #define _GNU_SOURCE
+    #endif
     #include <sys/syscall.h>
     #include <unistd.h>
     #include <fcntl.h>