commit | 2341f3cc6b3ac3ba5d6a4c0156c166051a5f73b3 | [log] [tgz] |
---|---|---|
author | Andrew Fort <afort@arista.com> | Mon Mar 26 15:27:42 2018 -0700 |
committer | Andrew Fort <afort@arista.com> | Mon Mar 26 15:27:42 2018 -0700 |
tree | 771fff955c413b8d3bb6fc49064f838c86a29f16 | |
parent | 892203aa595e1dcbba020d234a603b5c710d72e1 [diff] [blame] |
parser: improve safety of MAP_ANONYMOUS symbol redefinition Per review, allow for Darwin to add their own MAP_ANONYMOUS support at a later time.
diff --git a/src/parser.h b/src/parser.h index dac634d..21e9170 100644 --- a/src/parser.h +++ b/src/parser.h
@@ -23,7 +23,9 @@ #include "tree_internal.h" #ifdef __APPLE__ -#define MAP_ANONYMOUS MAP_ANON +# ifndef MAP_ANONYMOUS +# define MAP_ANONYMOUS MAP_ANON +# endif #endif /**