Browse Source

add sys/mman.h for MAP_ANON and MAP_ANONYMOUS

OPENBSD_5_8
kinichiro 10 years ago
committed by Brent Cook
parent
commit
ee0dfcfd61
2 changed files with 20 additions and 0 deletions
  1. +1
    -0
      include/Makefile.am
  2. +19
    -0
      include/sys/mman.h

+ 1
- 0
include/Makefile.am View File

@ -6,6 +6,7 @@ noinst_HEADERS += sys/queue.h
noinst_HEADERS += sys/socket.h noinst_HEADERS += sys/socket.h
noinst_HEADERS += sys/types.h noinst_HEADERS += sys/types.h
noinst_HEADERS += sys/time.h noinst_HEADERS += sys/time.h
noinst_HEADERS += sys/mman.h
noinst_HEADERS += err.h noinst_HEADERS += err.h
noinst_HEADERS += ifaddrs.h noinst_HEADERS += ifaddrs.h
noinst_HEADERS += imsg.h noinst_HEADERS += imsg.h


+ 19
- 0
include/sys/mman.h View File

@ -0,0 +1,19 @@
/*
* Public domain
* sys/mman.h compatibility shim
*/
#include_next <sys/mman.h>
#ifndef LIBCRYPTOCOMPAT_MMAN_H
#define LIBCRYPTOCOMPAT_MMAN_H
#ifndef MAP_ANON
#ifdef MAP_ANONYMOUS
#define MAP_ANON MAP_ANONYMOUS
#else
#error "System does not support mapping anonymous pages?"
#endif
#endif
#endif

Loading…
Cancel
Save