[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] mountlist patches to assume C89 or better
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] mountlist patches to assume C89 or better |
Date: |
09 Sep 2003 15:49:27 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I installed this:
2003-09-09 Paul Eggert <address@hidden>
* mountlist.c:Include <stdlib.h>, <string.h> unconditionally.
(free): Remove decl.
* mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
C orders, or for string.h.
Index: lib/mountlist.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/mountlist.c,v
retrieving revision 1.41
diff -p -u -r1.41 mountlist.c
--- lib/mountlist.c 14 Aug 2003 23:34:39 -0000 1.41
+++ lib/mountlist.c 9 Sep 2003 22:45:42 -0000
@@ -21,18 +21,9 @@
#include <stdio.h>
#include <sys/types.h>
+#include <stdlib.h>
+#include <string.h>
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-#else
-void free ();
-#endif
-#if defined STDC_HEADERS || defined HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
#include "xalloc.h"
#ifndef strstr
Index: m4/mountlist.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/mountlist.m4,v
retrieving revision 1.1
diff -p -u -r1.1 mountlist.m4
--- m4/mountlist.m4 31 Dec 2002 13:42:07 -0000 1.1
+++ m4/mountlist.m4 9 Sep 2003 22:45:42 -0000
@@ -1,5 +1,5 @@
-# mountlist.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# mountlist.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -19,9 +19,8 @@ AC_DEFUN([gl_MOUNTLIST],
# Prerequisites of lib/mountlist.c not done by jm_LIST_MOUNTED_FILESYSTEMS.
AC_DEFUN([gl_PREREQ_MOUNTLIST_EXTRA],
[
- AC_REQUIRE([AC_HEADER_STDC])
dnl Note jm_LIST_MOUNTED_FILESYSTEMS checks for mntent.h, not sys/mntent.h.
- AC_CHECK_HEADERS_ONCE(fcntl.h string.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
AC_CHECK_HEADERS(sys/mntent.h)
jm_FSTYPENAME
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] mountlist patches to assume C89 or better,
Paul Eggert <=