libreSSL/include/sys/mman.h
Brent Cook af705b3f7d add sys/mman.h shim to define MAP_ANON if needed
thanks to kinichiro for pointing this out

ok deraadt@ beck@
2014-07-29 11:17:48 -05:00

15 lines
246 B
C

#include_next <sys/mman.h>
#ifndef LIBCRYPTOCOMPAT_MMAN_H
#define LIBCRYPTOCOMPAT_MMAN_H
#ifndef MAP_ANONYMOUS
#ifdef MAP_ANON
#define MAP_ANONYMOUS MAP_ANON
#else
#error "System does not support mapping anonymous pages?"
#endif
#endif
#endif