maint: remove definition of O_CLOEXEC, ...
authorJim Meyering <meyering@redhat.com>
Tue, 28 Jun 2011 18:09:49 +0000 (20:09 +0200)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 28 Jun 2011 22:30:12 +0000 (23:30 +0100)
now that we're using gnulib's fcntl module, which ensures
that we use a conforming <fcntl.h>.
* lib/hivex.c (O_CLOEXEC): Remove definition.
* bootstrap (modules): Add fcntl for its guaranteed definition
of O_CLOEXEC.

bootstrap
lib/hivex.c

index e91c8c9..638d230 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -56,6 +56,7 @@ gnulib_tool=$GNULIB_SRCDIR/gnulib-tool
 
 modules='
 c-ctype
+fcntl
 full-read
 full-write
 gitlog-to-changelog
index a72fa77..946ecf3 100644 (file)
 #include "full-read.h"
 #include "full-write.h"
 
-#ifndef O_CLOEXEC
-#define O_CLOEXEC 0
-#endif
-
 #define STREQ(a,b) (strcmp((a),(b)) == 0)
 #define STRCASEEQ(a,b) (strcasecmp((a),(b)) == 0)
 //#define STRNEQ(a,b) (strcmp((a),(b)) != 0)