changeset 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 13e9258cbefb
children 5bb5bcd27f41
files src/s/sol2.h
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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__