changeset 23329:a8682715883a

Treat __GNU__ line NeXT: undefine BSD and FSCALE.
author Richard M. Stallman <rms@gnu.org>
date Sun, 27 Sep 1998 07:29:59 +0000
parents e3a026b14e82
children 3f2ab6f2bb5c
files src/getloadavg.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/getloadavg.c	Sun Sep 27 07:21:30 1998 +0000
+++ b/src/getloadavg.c	Sun Sep 27 07:29:59 1998 +0000
@@ -132,6 +132,12 @@
 #  undef FSCALE
 # endif
 
+/* Same issues as for NeXT apply to the HURD-based GNU system.  */
+# ifdef __GNU__
+#  undef BSD
+#  undef FSCALE
+# endif /* __GNU__ */
+
 /* Set values that are different from the defaults, which are
    set a little farther down with #ifndef.  */
 
@@ -528,13 +534,13 @@
 
 #if !defined(VMS) && !defined(sgi) && !defined(__linux__)
 static struct nlist nl[2];
-#endif
+#endif /* Not VMS or sgi */
 
 #ifdef SUNOS_5
 static kvm_t *kd;
 #endif /* SUNOS_5 */
 
-# endif /* LOAD_AVE_TYPE && !HAVE_LIBKSTAT */
+#endif /* LOAD_AVE_TYPE && !HAVE_LIBKSTAT */
 
 /* Put the 1 minute, 5 minute and 15 minute load averages
    into the first NELEM elements of LOADAVG.