bug-gnulib
[Top][All Lists]
Advanced

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

[bug-gnulib] gnulib bug fixes to remove warnings with HP-UX 11.11 and AN


From: Paul Eggert
Subject: [bug-gnulib] gnulib bug fixes to remove warnings with HP-UX 11.11 and ANSI C
Date: Fri, 26 Nov 2004 00:39:34 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

I installed this change, imported from coreutils:

2004-11-25  Paul Eggert  <address@hidden>

        Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
        HP's ANSI C compiler.
        * fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
        Declaring int functions causes warnings on some modern systems and
        shouldn't be needed to compile on ancient ones.
        * same.c (MIN) [defined MIN]: Don't define, since it's already
        defined.

Index: lib/fsusage.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/fsusage.c,v
retrieving revision 1.47
diff -p -u -r1.47 fsusage.c
--- lib/fsusage.c       7 Aug 2004 00:09:39 -0000       1.47
+++ lib/fsusage.c       26 Nov 2004 08:34:11 -0000
@@ -74,7 +74,6 @@
 
 #if HAVE_SYS_STATVFS_H         /* SVR4 */
 # include <sys/statvfs.h>
-int statvfs ();
 #endif
 
 #include "full-read.h"
Index: lib/same.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/same.c,v
retrieving revision 1.14
diff -p -u -r1.14 same.c
--- lib/same.c  6 Aug 2004 06:19:08 -0000       1.14
+++ lib/same.c  26 Nov 2004 08:34:11 -0000
@@ -46,7 +46,9 @@
 #include "error.h"
 #include "xalloc.h"
 
-#define MIN(a, b) ((a) < (b) ? (a) : (b))
+#ifndef MIN
+# define MIN(a, b) ((a) < (b) ? (a) : (b))
+#endif
 
 #define SAME_INODE(Stat_buf_1, Stat_buf_2) \
   ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \




reply via email to

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