From: Jim Meyering Date: Tue, 28 Jun 2011 18:09:49 +0000 (+0200) Subject: maint: remove definition of O_CLOEXEC, ... X-Git-Tag: 1.2.8~16 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;ds=sidebyside;h=2602a526e1cd9fd0f81d33e331e0911edece3685;p=hivex.git 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. --- 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)