mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-24 12:42:53 +02:00
Don't include sys/mman.h when not using mprotect
This commit is contained in:
@@ -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" {
|
||||
|
2
amd64.c
2
amd64.c
@@ -99,7 +99,9 @@ static void (*co_swap)(cothread_t, cothread_t) = 0;
|
||||
};
|
||||
|
||||
#include <unistd.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" {
|
||||
|
Reference in New Issue
Block a user