From 2602a526e1cd9fd0f81d33e331e0911edece3685 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 28 Jun 2011 20:09:49 +0200 Subject: [PATCH] maint: remove definition of O_CLOEXEC, ... now that we're using gnulib's fcntl module, which ensures that we use a conforming . * lib/hivex.c (O_CLOEXEC): Remove definition. * bootstrap (modules): Add fcntl for its guaranteed definition of O_CLOEXEC. --- bootstrap | 1 + lib/hivex.c | 4 ---- 2 files changed, 1 insertion(+), 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) -- 1.8.3.1