Take advantage of FreeBSD `system info' code

This commit is contained in:
espie 1999-06-20 18:21:54 +00:00
parent 2a3aa7035d
commit 4a98616c06
4 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- kcontrol/info/info.cpp.orig Sun Jun 20 19:40:46 1999
+++ kcontrol/info/info.cpp Sun Jun 20 19:41:18 1999
@@ -112,7 +112,7 @@
#include "info_linux.cpp"
#elif sgi || sun
#include "info_sgi.cpp"
-#elif __FreeBSD__
+#elif __FreeBSD__ || __OpenBSD__
#include "info_fbsd.cpp"
#elif hpux
#include "info_hpux.cpp"

View File

@ -0,0 +1,10 @@
--- kcontrol/info/info_fbsd.cpp.orig Sun Jun 20 19:43:01 1999
+++ kcontrol/info/info_fbsd.cpp Sun Jun 20 19:43:13 1999
@@ -25,6 +25,7 @@
*/
#include <sys/types.h>
+#include <sys/param.h>
#include <sys/sysctl.h>
#include <fstab.h>

View File

@ -0,0 +1,11 @@
--- kcontrol/info/memory.cpp.orig Sun Jun 20 19:40:56 1999
+++ kcontrol/info/memory.cpp Sun Jun 20 19:41:26 1999
@@ -86,7 +86,7 @@
#include "memory_linux.cpp"
#elif sgi
#include "memory_sgi.cpp"
-#elif __FreeBSD__
+#elif __FreeBSD__ || __OpenBSD__
#include "memory_fbsd.cpp"
#elif hpux
#include "memory_hpux.cpp"

View File

@ -0,0 +1,10 @@
--- kcontrol/info/memory_fbsd.cpp.orig Sun Jun 20 19:43:22 1999
+++ kcontrol/info/memory_fbsd.cpp Sun Jun 20 19:43:36 1999
@@ -1,6 +1,7 @@
// $Id: patch-an,v 1.1 1999/06/20 18:21:55 espie Exp $
#include <sys/types.h>
+#include <sys/param.h>
#include <sys/sysctl.h>
#include <stdlib.h> // For atoi()