* m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
+2006-06-28 Derek R. Price <derek@ximbiot.com>
+
+ * savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
+ Autoconf 2.60 says this stuff was obsolete.
+
2006-05-12 Bruno Haible <bruno@clisp.org>
* mkdtemp.c [MINGW]: Include <io.h>.
/* 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
# 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>
}
name_space[used] = '\0';
save_errno = errno;
- if (CLOSEDIR (dirp) != 0)
+ if (closedir (dirp) != 0)
save_errno = errno;
if (save_errno != 0)
{
-2006-06-28 Derek Price <derek@ximbiot.com>
+2006-06-28 Derek R. Price <derek@ximbiot.com>
+
+ * savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
* fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
it's obsolete.
-# savedir.m4 serial 4
-dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
+# savedir.m4 serial 5
+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.
dnl Prerequisites of lib/savedir.c.
AC_REQUIRE([AC_HEADER_DIRENT])
- AC_REQUIRE([AC_FUNC_CLOSEDIR_VOID])
])