[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] xreadlink patch to assume C89 or better
From: |
Bruno Haible |
Subject: |
[Bug-gnulib] xreadlink patch to assume C89 or better |
Date: |
Wed, 10 Sep 2003 16:24:45 +0200 |
User-agent: |
KMail/1.5 |
May I commit this patch, Jim?
* lib/xreadlink.c: Include <stdlib.h> unconditionally.
* m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
*** lib/xreadlink.c 1 Jul 2003 21:07:13 -0000 1.10
--- lib/xreadlink.c 10 Sep 2003 13:47:02 -0000
***************
*** 31,39 ****
#include <limits.h>
#include <sys/types.h>
! #if HAVE_STDLIB_H
! # include <stdlib.h>
! #endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
--- 31,37 ----
#include <limits.h>
#include <sys/types.h>
! #include <stdlib.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
*** m4/xreadlink.m4 1 Jul 2003 21:07:13 -0000 1.4
--- m4/xreadlink.m4 10 Sep 2003 13:47:02 -0000
***************
*** 1,4 ****
! # xreadlink.m4 serial 3
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
--- 1,4 ----
! # xreadlink.m4 serial 4
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
***************
*** 10,14 ****
[
dnl Prerequisites of lib/xreadlink.c.
AC_REQUIRE([gt_TYPE_SSIZE_T])
! AC_CHECK_HEADERS_ONCE(stdlib.h unistd.h)
])
--- 10,14 ----
[
dnl Prerequisites of lib/xreadlink.c.
AC_REQUIRE([gt_TYPE_SSIZE_T])
! AC_CHECK_HEADERS_ONCE(unistd.h)
])
- [Bug-gnulib] xreadlink patch to assume C89 or better,
Bruno Haible <=