diff options
Diffstat (limited to 'devel/ddd/files/patch-ddd::LiterateA.C')
-rw-r--r-- | devel/ddd/files/patch-ddd::LiterateA.C | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/devel/ddd/files/patch-ddd::LiterateA.C b/devel/ddd/files/patch-ddd::LiterateA.C index f1b3c4ea7aa2..5ce55bf12986 100644 --- a/devel/ddd/files/patch-ddd::LiterateA.C +++ b/devel/ddd/files/patch-ddd::LiterateA.C @@ -1,6 +1,6 @@ ---- ddd/LiterateA.C.orig Sat May 24 11:27:03 2003 -+++ ddd/LiterateA.C Fri Feb 27 13:33:02 2004 -@@ -220,8 +220,12 @@ +--- ddd/LiterateA.C.orig Thu Aug 19 20:16:55 2004 ++++ ddd/LiterateA.C Thu Aug 19 20:23:49 2004 +@@ -216,8 +216,12 @@ int flags = fcntl(fileno(fp), F_GETFL, 0); if (flags == -1) _raiseIOWarning("cannot get file descriptor status flags"); @@ -8,14 +8,14 @@ - _raiseIOWarning("cannot set file to non-blocking mode"); + if (fcntl(fileno(fp), F_SETFL, flags | O_NONBLOCK) == -1) { +#if defined(__FreeBSD__) -+ if(errno != EAGAIN) ++ if(errno != EAGAIN) +#endif + _raiseIOWarning("cannot set file to non-blocking mode"); + } #endif // Read stuff -@@ -255,8 +259,12 @@ +@@ -251,8 +255,12 @@ #if HAVE_FCNTL && defined(F_SETFL) // Reset file state @@ -23,7 +23,7 @@ - _raiseIOWarning("cannot restore file mode"); + if (fcntl(fileno(fp), F_SETFL, flags) == -1) { +#if defined(__FreeBSD__) -+ if(errno != EAGAIN) ++ if(errno != EAGAIN) +#endif + _raiseIOWarning("cannot restore file mode"); + } |