bug-gnulib
[Top][All Lists]
Advanced

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

fdopendir


From: Eric Blake
Subject: fdopendir
Date: Mon, 04 Jan 2010 06:51:44 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

I noticed (by accident) that a typo in fdopendir was rejecting working
implementations.  Pushing:

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
From e138cd8fc9c9465059e9d0427d0cf0669d5a8caf Mon Sep 17 00:00:00 2001
From: Eric Blake <address@hidden>
Date: Mon, 4 Jan 2010 06:36:13 -0700
Subject: [PATCH] fdopendir: fix configure test

A typo was causing spurious rejection of fdopendir.

* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.

Signed-off-by: Eric Blake <address@hidden>
---
 ChangeLog       |    5 +++++
 m4/fdopendir.m4 |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ecf7295..272c77f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-04  Eric Blake  <address@hidden>
+
+       fdopendir: fix configure test
+       * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
+
 2010-01-01  Bruno Haible  <address@hidden>

        wchar: Remove unused configure check.
diff --git a/m4/fdopendir.m4 b/m4/fdopendir.m4
index 1c14996..7282d4b 100644
--- a/m4/fdopendir.m4
+++ b/m4/fdopendir.m4
@@ -1,4 +1,4 @@
-# serial 2
+# serial 3
 # See if we need to provide fdopendir.

 dnl Copyright (C) 2009-2010 Free Software Foundation, Inc.
@@ -23,7 +23,7 @@ AC_DEFUN([gl_FUNC_FDOPENDIR],
       [AC_RUN_IFELSE([AC_LANG_PROGRAM([[
 #include <dirent.h>
 #include <fcntl.h>
-]], [int fd = open ("conftest.h", O_RDONLY);
+]], [int fd = open ("conftest.c", O_RDONLY);
      if (fd < 0) return 2;
      return !!fdopendir (fd);])],
          [gl_cv_func_fdopendir_works=yes],
-- 
1.6.4.2

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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