bug-gnulib
[Top][All Lists]
Advanced

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

ls-mntd-fs.m4 bug fix


From: Jim Meyering
Subject: ls-mntd-fs.m4 bug fix
Date: Sun, 24 Sep 2006 08:52:47 +0200

coreutils' configure failed on HP-UX with hpcc.
The cause was here:

  configure:39945: checking for one-argument getmntent function
  configure:39988: cc -c -Ae -O  conftest.c >&5
  cc: "conftest.c", line 310: error 1649: Illegal integer-pointer combination 
for >.
  cc: "conftest.c", line 310: error 1563: Expression in if must be scalar.

I've made this change:

2006-09-24  Jim Meyering  <address@hidden>

        * ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
        compare a pointer against a literal "0".  That caused failures with
        at least HP-UX's hpcc.

Index: m4/ls-mntd-fs.m4
===================================================================
RCS file: /sources/gnulib/gnulib/m4/ls-mntd-fs.m4,v
retrieving revision 1.36
diff -u -r1.36 ls-mntd-fs.m4
--- m4/ls-mntd-fs.m4    22 Sep 2006 18:09:47 -0000      1.36
+++ m4/ls-mntd-fs.m4    24 Sep 2006 06:49:00 -0000
@@ -1,4 +1,4 @@
-#serial 25
+#serial 26
 # How to list mounted file systems.

 # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free Software
@@ -142,7 +142,7 @@
 #endif
 ],
                     [ struct mntent *mnt = 0; char *table = MOUNTED;
-                     if (sizeof mnt > 0 && table > 0) return 0;],
+                     if (sizeof mnt && sizeof table) return 0;],
                    fu_cv_sys_mounted_getmntent1=yes,
                    fu_cv_sys_mounted_getmntent1=no)])
     AC_MSG_RESULT($fu_cv_sys_mounted_getmntent1)
/sources/gnulib/gnulib/m4/ChangeLog,v  <--  m4/ChangeLog
new revision: 1.945; previous revision: 1.944
/sources/gnulib/gnulib/m4/ls-mntd-fs.m4,v  <--  m4/ls-mntd-fs.m4
new revision: 1.37; previous revision: 1.36




reply via email to

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