Skip to content

Commit

Permalink
chore, hardcode MAP_ANON if not defined
Browse files Browse the repository at this point in the history
Patch from the FreeBSD port by Jesse.

Signed-off-by: Sebastian Freundt <hroptatyr@fresse.org>
  • Loading branch information
hroptatyr committed Mar 18, 2014
1 parent 95984c7 commit 45ebf6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tzraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@

#if !defined MAP_ANONYMOUS && defined MAP_ANON
# define MAP_ANONYMOUS (MAP_ANON)
#elif !defined MAP_ANON
# define MAP_ANON (0x1000U)
#endif /* MAP_ANON->MAP_ANONYMOUS */

typedef struct zih_s *zih_t;
Expand Down
2 changes: 2 additions & 0 deletions src/prchunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@

#if !defined MAP_ANONYMOUS && defined MAP_ANON
# define MAP_ANONYMOUS (MAP_ANON)
#elif !defined MAP_ANON
# define MAP_ANON (0x1000U)
#endif /* MAP_ANON->MAP_ANONYMOUS */

#if defined __INTEL_COMPILER
Expand Down

0 comments on commit 45ebf6d

Please sign in to comment.