bug-findutils
[Top][All Lists]
Advanced

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

[PATCH 2/8] gnulib already defines O_CLOEXEC.


From: James Youngman
Subject: [PATCH 2/8] gnulib already defines O_CLOEXEC.
Date: Sun, 5 Jun 2011 01:11:51 +0100

* lib/fdleak.c: gnulib's fcntl.h always defines O_CLOEXEC, so
don't define it here.
---
 ChangeLog    |    4 ++++
 lib/fdleak.c |    4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 798301f..624d848 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-06-04  James Youngman  <address@hidden>
 
+       gnulib already defines O_CLOEXEC.
+       * lib/fdleak.c: gnulib's fcntl.h always defines O_CLOEXEC, so
+       don't define it here.
+
        Add internationalisation support to bigram but not regexprops.
        * locate/bigram.c: Use libintl.h.
        (main): Call bindtextdomain.
diff --git a/lib/fdleak.c b/lib/fdleak.c
index 05ad2fc..f366666 100644
--- a/lib/fdleak.c
+++ b/lib/fdleak.c
@@ -59,10 +59,6 @@ static int *non_cloexec_fds;
 static size_t num_cloexec_fds;
 
 
-#if !defined(O_CLOEXEC)
-#define O_CLOEXEC 0
-#endif
-
 /* Determine the value of the largest open fd, on systems that
  * offer /proc/self/fd. */
 static int
-- 
1.7.2.5




reply via email to

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