From acdcf95b847876b8e4e8e14bf609a0f64bb3d038 Mon Sep 17 00:00:00 2001 From: James Youngman Date: Sat, 4 Jun 2011 16:06:25 +0100 Subject: [PATCH] gnulib already defines O_CLOEXEC. * 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 798301fe..624d8489 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-06-04 James Youngman + 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 05ad2fc7..f3666662 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