SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
12
cad/oce/patches/patch-src_Standard_Standard_MMgrOpt_cxx
Normal file
12
cad/oce/patches/patch-src_Standard_Standard_MMgrOpt_cxx
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: src/Standard/Standard_MMgrOpt.cxx
|
||||
--- src/Standard/Standard_MMgrOpt.cxx.orig
|
||||
+++ src/Standard/Standard_MMgrOpt.cxx
|
||||
@@ -249,7 +249,7 @@ void Standard_MMgrOpt::Initialize()
|
||||
perror("ERR_MEMRY_FAIL");
|
||||
#endif
|
||||
|
||||
-#if defined(IRIX) || defined(__sgi) || defined(SOLARIS) || defined(__sun) || defined(__linux__) || defined(__FreeBSD__) || defined(__ANDROID__)
|
||||
+#if defined(IRIX) || defined(__sgi) || defined(SOLARIS) || defined(__sun) || defined(__linux__) || defined(__FreeBSD__) || defined(__ANDROID__) || defined(__OpenBSD__)
|
||||
if ((myMMap = open ("/dev/zero", O_RDWR)) < 0) {
|
||||
if ((myMMap = open ("/dev/null", O_RDWR)) < 0){
|
||||
myMMap = 0;
|
Loading…
Add table
Add a link
Reference in a new issue