gnulib already defines O_CLOEXEC.

* lib/fdleak.c: gnulib's fcntl.h always defines O_CLOEXEC, so
don't define it here.
This commit is contained in:
James Youngman
2011-06-04 16:06:25 +01:00
parent e3e2d4f49e
commit acdcf95b84
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,9 @@
2011-06-04 James Youngman <jay@gnu.org>
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.

View File

@@ -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