summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-06-28 20:09:49 +0200
committerRichard W.M. Jones <rjones@redhat.com>2011-06-28 23:30:12 +0100
commit2602a526e1cd9fd0f81d33e331e0911edece3685 (patch)
tree094b4dd54575dbe453da2ff7b454b675c4af6a38
parent2419bda3b4b47687c787a2937238fee932ad66e5 (diff)
downloadhivex-2602a526e1cd9fd0f81d33e331e0911edece3685.tar.gz
hivex-2602a526e1cd9fd0f81d33e331e0911edece3685.tar.xz
hivex-2602a526e1cd9fd0f81d33e331e0911edece3685.zip
maint: remove definition of O_CLOEXEC, ...
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.
-rwxr-xr-xbootstrap1
-rw-r--r--lib/hivex.c4
2 files changed, 1 insertions, 4 deletions
diff --git a/bootstrap b/bootstrap
index e91c8c9..638d230 100755
--- 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
diff --git a/lib/hivex.c b/lib/hivex.c
index a72fa77..946ecf3 100644
--- a/lib/hivex.c
+++ b/lib/hivex.c
@@ -38,10 +38,6 @@
#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)