GNU bug report logs - #11905
Unnecessary '#define unix' in src/s/aix4-2.h

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Tue, 10 Jul 2012 23:32:01 UTC

Severity: minor

Found in version 24.1.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jim Meyering <jim <at> meyering.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Glenn Morris <rgm <at> gnu.org>, bug-gnulib <bug-gnulib <at> gnu.org>, 11905 <at> debbugs.gnu.org
Subject: bug#11905: Unnecessary '#define unix' in src/s/aix4-2.h
Date: Wed, 11 Jul 2012 09:26:05 +0200
Paul Eggert wrote:
> On 07/10/2012 04:25 PM, Glenn Morris wrote:
>> I suspect that Gnulib already has the AIX
>> case covered (via "__unix"?), so that src/s/aix4-2.h no longer needs to
>> define "unix".
>
> Yes, that sounds right.  I have started to fix this by
> installing the following patch into gnulib, and will
> propagate this into Emacs shortly.
>
> ---
>  ChangeLog        |    9 +++++++++
>  lib/getloadavg.c |   28 +++-------------------------
>  m4/getloadavg.m4 |    2 ++
>  3 files changed, 14 insertions(+), 25 deletions(-)
>
> diff --git a/ChangeLog b/ChangeLog
> index d94f7b1..b27ef8d 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,12 @@
> +2012-07-10  Paul Eggert  <eggert <at> cs.ucla.edu>
> +
> +	getloadavg: clean out old Emacs and Autoconf cruft
> +	See Glenn Morris in <http://bugs.gnu.org/11905>.
> +	* lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
> +	Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
> +	(LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
> +	* m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.

Welcome clean-up.  Thanks!




This bug report was last modified 12 years and 314 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.