astextplain: Try to workaround textconv vs symlinks problem on win32
[msysgit/kirr.git] / src / file / patches / 0005-Add-one-forgotten-ifndef-O_NONBLOCK-.-endif.patch
blob1813d8124d132dc9c4aa563753059dbeb25cf907
1 From 8c600c9ec99f82dae6c6bef51095ae51968c6a0b Mon Sep 17 00:00:00 2001
2 From: Johannes Schindelin <johannes.schindelin@gmx.de>
3 Date: Mon, 7 Dec 2009 17:22:54 +0100
4 Subject: [PATCH 5/6] Add one forgotten #ifndef O_NONBLOCK ... #endif
6 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
7 ---
8 src/magic.c | 2 ++
9 1 files changed, 2 insertions(+), 0 deletions(-)
11 diff --git a/src/magic.c b/src/magic.c
12 index d49c29a..6aac84a 100644
13 --- a/src/magic.c
14 +++ b/src/magic.c
15 @@ -315,7 +315,9 @@ file_or_fd(struct magic_set *ms, const char *inname, int fd)
16 int flags = O_RDONLY|O_BINARY;
18 if (stat(inname, &sb) == 0 && S_ISFIFO(sb.st_mode)) {
19 +#ifdef O_NONBLOCK
20 flags |= O_NONBLOCK;
21 +#endif
22 ispipe = 1;
25 --
26 1.7.3