bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11914: Unnecessary '#define HAVE_LIBKSTAT' in src/s/sol2-6.h


From: Glenn Morris
Subject: bug#11914: Unnecessary '#define HAVE_LIBKSTAT' in src/s/sol2-6.h
Date: Wed, 11 Jul 2012 15:14:18 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Package: emacs
Version: 24.1.50
Severity: minor

(Very similar to bug#11905)

src/s/sol2-6.h does this:
    
    /* Prefer kstat over kvm in getloadavg.c, kstat doesn't require root.
       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

The only place in Emacs that references '#ifdef HAVE_LIBKSTAT' is
lib/getloadavg.c, from Gnulib. It looks like Gnulib is already handling
this properly via configure checks (?), so there is no need for Emacs's
src/s/sol2-6.h to define HAVE_LIBKSTAT.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]