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