mirror of https://github.com/bsnes-emu/bsnes.git
Don't include sys/mman.h when not using mprotect
This commit is contained in:
parent
0d87e92a10
commit
d094c21824
|
@ -6,7 +6,9 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
#ifdef LIBCO_MPROTECT
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
4
amd64.c
4
amd64.c
|
@ -99,7 +99,9 @@ static void (*co_swap)(cothread_t, cothread_t) = 0;
|
|||
};
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
#ifdef LIBCO_MPROTECT
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
static void co_init() {
|
||||
#ifdef LIBCO_MPROTECT
|
||||
|
|
4
arm.c
4
arm.c
|
@ -5,7 +5,9 @@
|
|||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
#ifdef LIBCO_MPROTECT
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
Loading…
Reference in New Issue