[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] 'same' module patch to assume C89 or later
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] 'same' module patch to assume C89 or later |
Date: |
09 Sep 2003 23:50:10 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I installed this:
2003-09-09 Paul Eggert <address@hidden>
* same.c: Include <stdlib.h>, <string.h> unconditionally.
(free): Remove decl.
* same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
Index: lib/same.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/same.c,v
retrieving revision 1.11
diff -p -u -r1.11 same.c
--- lib/same.c 6 Jun 2003 21:07:23 -0000 1.11
+++ lib/same.c 10 Sep 2003 06:46:30 -0000
@@ -25,9 +25,7 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
@@ -36,23 +34,12 @@
extern int errno;
#endif
-#if HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
+#include <string.h>
#include "same.h"
#include "dirname.h"
#include "error.h"
#include "xalloc.h"
-
-#ifndef HAVE_DECL_FREE
-"this configure-time declaration test was not run"
-#endif
-#if !HAVE_DECL_FREE
-void free ();
-#endif
#define SAME_INODE(Stat_buf_1, Stat_buf_2) \
((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
Index: m4/same.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/same.m4,v
retrieving revision 1.1
diff -p -u -r1.1 same.m4
--- m4/same.m4 31 Dec 2002 13:42:07 -0000 1.1
+++ m4/same.m4 10 Sep 2003 06:46:30 -0000
@@ -1,5 +1,5 @@
-# same.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# same.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
@@ -9,6 +9,5 @@ dnl the same distribution terms as the r
AC_DEFUN([gl_SAME],
[
dnl Prerequisites of lib/same.c.
- AC_CHECK_HEADERS_ONCE(stdlib.h string.h unistd.h)
- AC_CHECK_DECLS_ONCE(free)
+ AC_CHECK_HEADERS_ONCE(unistd.h)
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] 'same' module patch to assume C89 or later,
Paul Eggert <=