bug-gnulib
[Top][All Lists]
Advanced

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

AC_FUNC_CLOSEDIR_VOID


From: Derek R. Price
Subject: AC_FUNC_CLOSEDIR_VOID
Date: Wed, 28 Jun 2006 15:46:02 -0400
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

Autoconf 2.60 lists AC_FUNC_CLOSEDIR_VOID as obsolescent due to lack of
practical porting targets.

2006-06-28  Derek R. Price  <address@hidden>

        * lib/savedir.c: Assume closedir returns an error code.
        * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.

Cheers,

Derek
-- 
Derek R. Price
CVS Solutions Architect
Get CVS support at Ximbiot <http://ximbiot.com>!
v: +1 248.835.1260
f: +1 248.835.1263
<mailto:address@hidden>
Index: lib/savedir.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/savedir.c,v
retrieving revision 1.28
diff -u -p -r1.28 savedir.c
--- lib/savedir.c       29 Nov 2005 18:47:36 -0000      1.28
+++ lib/savedir.c       28 Jun 2006 19:40:45 -0000
@@ -1,6 +1,6 @@
 /* savedir.c -- save the list of files in a directory in a string
 
-   Copyright 1990, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free
+   Copyright 1990, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006 Free
    Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -44,13 +44,6 @@
 # endif
 #endif
 
-#ifdef CLOSEDIR_VOID
-/* Fake a return value. */
-# define CLOSEDIR(d) (closedir (d), 0)
-#else
-# define CLOSEDIR(d) closedir (d)
-#endif
-
 #include <stddef.h>
 #include <stdlib.h>
 #include <string.h>
@@ -117,7 +110,7 @@ savedirstream (DIR *dirp)
     }
   name_space[used] = '\0';
   save_errno = errno;
-  if (CLOSEDIR (dirp) != 0)
+  if (closedir (dirp) != 0)
     save_errno = errno;
   if (save_errno != 0)
     {
Index: m4/savedir.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/savedir.m4,v
retrieving revision 1.4
diff -u -p -r1.4 savedir.m4
--- m4/savedir.m4       21 Mar 2005 22:06:27 -0000      1.4
+++ m4/savedir.m4       28 Jun 2006 19:40:45 -0000
@@ -1,5 +1,5 @@
 # savedir.m4 serial 4
-dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
+dnl Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -11,5 +11,4 @@ AC_DEFUN([gl_SAVEDIR],
 
   dnl Prerequisites of lib/savedir.c.
   AC_REQUIRE([AC_HEADER_DIRENT])
-  AC_REQUIRE([AC_FUNC_CLOSEDIR_VOID])
 ])

reply via email to

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