[PATCH] Get closer to FreeBSD compile
diff --git a/os-freebsd.h b/os-freebsd.h
index bd6d6d0..31fa010 100644
--- a/os-freebsd.h
+++ b/os-freebsd.h
@@ -20,4 +20,14 @@
 	return 1;
 }
 
+static inline unsigned long long os_phys_mem(void)
+{
+	int mib[2] = { CTL_HW, HW_PHYSMEM };
+	unsigned long long mem;
+	size_t len = sizeof(mem);
+
+	sysctl(mib, 2, &mem, &len, NULL, 0);
+	return mem;
+}
+
 #endif