diff --git a/Makefile b/Makefile index 044e7d7fe..8f94c77af 100644 --- a/Makefile +++ b/Makefile @@ -30,8 +30,8 @@ endif # Compile flags # -CFLAGS = -I. -O3 -DNDEBUG -std=c11 -fPIC -CXXFLAGS = -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC +CFLAGS = -I. -O3 -DNDEBUG -fPIC +CXXFLAGS = -I. -I./examples -O3 -DNDEBUG -fPIC LDFLAGS = # OS specific diff --git a/mmap.c b/mmap.c index d9ceb3348..1abb44799 100644 --- a/mmap.c +++ b/mmap.c @@ -34,7 +34,7 @@ #ifdef NEED_POSIX_MMAP #include -static void *PosixMmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) { +void *PosixMmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) { int tfd; void* res; char path[] = "/tmp/llama.dat.XXXXXX";