bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] build: avoid compilation failure on systems using rpl_open


From: Jim Meyering
Subject: [PATCH] build: avoid compilation failure on systems using rpl_open
Date: Sun, 21 Mar 2010 16:31:06 +0100

FYI,

>From af63c52f901a63e6503820c0bee55eda90fc1a50 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sun, 21 Mar 2010 16:30:31 +0100
Subject: [PATCH] build: avoid compilation failure on systems using rpl_open

This new build failure has arisen as a result of using gnulib's
"fcntl" module.  Now that an inadequate "open" syscall is replace
by gnulib's wrapper, it is essential to include <fcntl.h>.
* src/grep.c: Include <fcntl.h>.
This is required, for grepfile's use of open, at least on
Cygwin and Darwin.
---
 src/grep.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/grep.c b/src/grep.c
index 591f801..e41ad50 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -33,6 +33,7 @@
 # include <wchar.h>
 # include <wctype.h>
 #endif
+#include <fcntl.h>
 #include <stdio.h>
 #include "system.h"

--
1.7.0.2.486.gfdfcd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]