Fix NetBSD build.

This commit is contained in:
Alexander Nasonov 2012-11-10 23:20:44 +00:00
parent 3a26470fb7
commit e85549ee11
3 changed files with 8 additions and 2 deletions

View File

@ -129,7 +129,7 @@ MD5SUM = md5 -r
endif endif
ifeq ($(OSNAME), NetBSD) ifeq ($(OSNAME), NetBSD)
MD5SUM = md5 -r MD5SUM = md5 -n
endif endif
ifeq ($(OSNAME), Linux) ifeq ($(OSNAME), Linux)

View File

@ -351,7 +351,12 @@ typedef int blasint;
#endif #endif
#define MMAP_ACCESS (PROT_READ | PROT_WRITE) #define MMAP_ACCESS (PROT_READ | PROT_WRITE)
#ifdef __NetBSD__
#define MMAP_POLICY (MAP_PRIVATE | MAP_ANON)
#else
#define MMAP_POLICY (MAP_PRIVATE | MAP_ANONYMOUS) #define MMAP_POLICY (MAP_PRIVATE | MAP_ANONYMOUS)
#endif
#include "param.h" #include "param.h"
#include "common_param.h" #include "common_param.h"

View File

@ -119,7 +119,8 @@ so : ../$(LIBSONAME)
endif endif
ifeq ($(OSNAME), FreeBSD) #http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or
ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD NetBSD))
so : ../$(LIBSONAME) so : ../$(LIBSONAME)