[Open-scap] [PATCH 3/9] Matching Solaris behavior for sysinfo workaround to existing BSD behavior. This will eventually need a better solution, but helps the compile process for now.

Marshall Miller mmiller at tresys.com
Fri Apr 29 21:20:54 UTC 2011


From: Francisco Slavin <fslavin at tresys.com>

---
 src/common/sysinfo.c |    2 +-
 src/common/sysinfo.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/sysinfo.c b/src/common/sysinfo.c
index ef12bfd..0f7904e 100644
--- a/src/common/sysinfo.c
+++ b/src/common/sysinfo.c
@@ -26,7 +26,7 @@
 
 #include "sysinfo.h"
 
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__SVR4)
 int sysinfo(struct sysinfo *info)
 {
 	return (-1);
diff --git a/src/common/sysinfo.h b/src/common/sysinfo.h
index 92a42ac..d27233c 100644
--- a/src/common/sysinfo.h
+++ b/src/common/sysinfo.h
@@ -3,7 +3,7 @@
 
 #if defined(__linux__)
 # include <sys/sysinfo.h>
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__SVR4)
 /*
  * sysinfo structure as defined in sys/sysinfo.h on Linux
  */
-- 
1.6.2.5




More information about the Open-scap-list mailing list