e5debc1dbe
make it compile on -current (ugly hack for very ugly sources)...
16 lines
533 B
Plaintext
16 lines
533 B
Plaintext
$OpenBSD: patch-bsd_swapinternal_cc,v 1.1 2002/03/18 06:51:24 form Exp $
|
|
--- bsd/swapinternal.cc.orig Mon Mar 18 12:27:08 2002
|
|
+++ bsd/swapinternal.cc Mon Mar 18 12:28:03 2002
|
|
@@ -1,3 +1,5 @@
|
|
+#if !(defined(XOSVIEW_OPENBSD) && defined(HAVE_SWAPCTL))
|
|
+
|
|
// Copyright (c) 1995 by Brian Grayson (bgrayson@ece.utexas.edu)
|
|
//
|
|
// This code is borrowed HEAVILY from the vmstat source code in the
|
|
@@ -499,3 +501,5 @@ BSDGetSwapInfo(int* total, int* free)
|
|
*free = 512*(avail-used);
|
|
#endif /* USE_KVM_GETSWAPINFO */
|
|
}
|
|
+
|
|
+#endif
|