summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-06-02 00:12:26 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-06-02 00:12:26 +0200
commitb9512d1774d2340888036c89d5ff7fc4a575cf1f (patch)
treea5ac424e4e8e27a5f629409eb09d4e6e3dc9f9b2 /package
parent90bff25c39508a14b3b0763799b10716bf7b8433 (diff)
fix cross-compile on Cygwin
Diffstat (limited to 'package')
-rw-r--r--package/grep/patches/patch-src_system_h18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/grep/patches/patch-src_system_h b/package/grep/patches/patch-src_system_h
new file mode 100644
index 000000000..1eb3e7f03
--- /dev/null
+++ b/package/grep/patches/patch-src_system_h
@@ -0,0 +1,18 @@
+--- grep-2.5.4.orig/src/system.h 2009-01-31 06:39:54.000000000 +0100
++++ grep-2.5.4/src/system.h 2010-05-29 00:08:24.703125000 +0200
+@@ -56,6 +56,7 @@ extern char *sys_errlist[];
+ #ifdef __BEOS__
+ # undef O_BINARY /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
+ #endif
++/*
+ #ifdef HAVE_DOS_FILE_CONTENTS
+ # include <io.h>
+ # ifdef HAVE_SETMODE
+@@ -64,6 +65,7 @@ extern char *sys_errlist[];
+ # define SET_BINARY(fd) _setmode (fd, O_BINARY)
+ # endif
+ #endif
++*/
+
+ #ifdef HAVE_DOS_FILE_NAMES
+ # define IS_SLASH(c) ((c) == '/' || (c) == '\\')