From 544e8d474bc0904fcfc9acba319fc7328c428426 Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 17 Jul 2022 13:36:26 +0200 Subject: [PATCH] Only Windows has O_BINARY. --- util/ack/run.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/ack/run.c b/util/ack/run.c index baafac5e7..e8265aee9 100644 --- a/util/ack/run.c +++ b/util/ack/run.c @@ -21,6 +21,10 @@ static char rcs_id[] = "$Id$"; #endif +#if !defined WIN32 +#define O_BINARY 0 +#endif + #define ARG_MORE 40 /* The size of args chunks to allocate */ static int run_exec(trf*);