Skip to content

Commit

Permalink
Merge pull request #14742 from JuliaLang/yyc/osx-map-anon
Browse files Browse the repository at this point in the history
Fix compilation on OSX
  • Loading branch information
yuyichao committed Jan 20, 2016
2 parents 2319785 + d23f8f2 commit 19003ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "threading.h"
#ifndef _OS_WINDOWS_
#include <sys/mman.h>
#ifdef _OS_DARWIN_
#if defined(_OS_DARWIN_) && !defined(MAP_ANONYMOUS)
#define MAP_ANONYMOUS MAP_ANON
#endif
#endif
Expand Down
3 changes: 3 additions & 0 deletions src/signals-unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#include <sys/stat.h>
#include <sys/mman.h>
#include <pthread.h>
#if defined(_OS_DARWIN_) && !defined(MAP_ANONYMOUS)
#define MAP_ANONYMOUS MAP_ANON
#endif

#ifdef __APPLE__
#include <AvailabilityMacros.h>
Expand Down

0 comments on commit 19003ea

Please sign in to comment.