opnsense-ports/devel/bennugd-modules/files/patch-mod__mem-mod__mem.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

20 lines
748 B
C

--- mod_mem/mod_mem.c.orig 2013-09-12 06:03:12.588226648 +0400
+++ mod_mem/mod_mem.c 2013-09-12 06:03:50.452231577 +0400
@@ -133,7 +133,7 @@
get_system_info( &info );
return B_PAGE_SIZE * ( info.max_pages - info.used_pages );
-#elif !defined(TARGET_MAC) && !defined(TARGET_WII)
+#elif !defined(TARGET_MAC) && !defined(TARGET_WII) && !defined(TARGET_BSD)
/* Linux and other Unix (?) */
struct sysinfo meminf;
int fv;
@@ -171,7 +171,7 @@
get_system_info( &info );
return B_PAGE_SIZE * ( info.max_pages );
-#elif !defined(TARGET_MAC) && !defined(TARGET_WII)
+#elif !defined(TARGET_MAC) && !defined(TARGET_WII) && !defined(TARGET_BSD)
/* Linux and other Unix (?) */
struct sysinfo meminf;
int fv;