diff src/s/sol2.h @ 44656:e080707a678b

(HAVE_LIBKSTAT): Define only if not already defined.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 17 Apr 2002 19:38:33 +0000
parents ac8c86ff7ee3
children 695cf19ef79e
line wrap: on
line diff
--- a/src/s/sol2.h	Wed Apr 17 16:09:45 2002 +0000
+++ b/src/s/sol2.h	Wed Apr 17 19:38:33 2002 +0000
@@ -27,8 +27,11 @@
 #define LIBS_SYSTEM -lsocket -lnsl -lkstat
 
 /* Prefer kstat over kvm in getloadavg.c, kstat doesn't require root.
-   ghazi@caip.rutgers.edu, 7/21/97. */
+   ghazi@caip.rutgers.edu, 7/21/97.  Don't redefine if already defined
+   (e.g., by config.h). */
+#ifndef HAVE_LIBKSTAT
 #define HAVE_LIBKSTAT
+#endif
 
 /* eggert thinks all versions of SunPro C allowed this.  */
 #ifndef __GNUC__