Browse Source

Fix NetBSD build.

tags/v0.2.5
Alexander Nasonov 13 years ago
parent
commit
e85549ee11
3 changed files with 8 additions and 2 deletions
  1. +1
    -1
      Makefile.system
  2. +5
    -0
      common.h
  3. +2
    -1
      exports/Makefile

+ 1
- 1
Makefile.system View File

@@ -129,7 +129,7 @@ MD5SUM = md5 -r
endif

ifeq ($(OSNAME), NetBSD)
MD5SUM = md5 -r
MD5SUM = md5 -n
endif

ifeq ($(OSNAME), Linux)


+ 5
- 0
common.h View File

@@ -351,7 +351,12 @@ typedef int blasint;
#endif

#define MMAP_ACCESS (PROT_READ | PROT_WRITE)

#ifdef __NetBSD__
#define MMAP_POLICY (MAP_PRIVATE | MAP_ANON)
#else
#define MMAP_POLICY (MAP_PRIVATE | MAP_ANONYMOUS)
#endif

#include "param.h"
#include "common_param.h"


+ 2
- 1
exports/Makefile View File

@@ -119,7 +119,8 @@ so : ../$(LIBSONAME)

endif

ifeq ($(OSNAME), FreeBSD)
#http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or
ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD NetBSD))

so : ../$(LIBSONAME)



Loading…
Cancel
Save