ports/math/scilab/files/patch-routines__os_specific__getmemory.c
Marcus Alves Grando 23bb3f224b - Update to 4.0
PR:		98060
Submitted by:	maintainer
2006-06-06 02:11:55 +00:00

26 lines
497 B
C

--- routines/os_specific/getmemory.c Wed Feb 1 21:50:55 2006
+++ routines/os_specific/getmemory.c Sat May 27 19:59:53 2006
@@ -69,6 +69,11 @@
}
#endif
+#if defined(__FreeBSD__)
+#define MEMOK 1
+ return 0;
+#endif
+
#ifndef MEMOK
/* Linux ,Solaris and others assumed*/
return (sysconf(_SC_AVPHYS_PAGES)*sysconf(_SC_PAGESIZE))/kooctet;
@@ -132,6 +137,11 @@
return 0;
}
}
+#endif
+
+#if defined(__FreeBSD__)
+#define MEMOK 1
+ return 0;
#endif
#ifndef MEMOK