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 5ce55bf12986..0766df2f0cc0 100644 --- a/devel/ddd/files/patch-ddd::LiterateA.C +++ b/devel/ddd/files/patch-ddd::LiterateA.C @@ -1,5 +1,5 @@ ---- ddd/LiterateA.C.orig Thu Aug 19 20:16:55 2004 -+++ ddd/LiterateA.C Thu Aug 19 20:23:49 2004 +--- ddd/LiterateA.C.orig Sat Nov 6 19:00:37 2004 ++++ ddd/LiterateA.C Sat Nov 6 19:04:44 2004 @@ -216,8 +216,12 @@ int flags = fcntl(fileno(fp), F_GETFL, 0); if (flags == -1) @@ -8,9 +8,9 @@ - _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"); ++ _raiseIOWarning("cannot set file to non-blocking mode"); + } #endif @@ -23,9 +23,9 @@ - _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"); ++ _raiseIOWarning("cannot restore file mode"); + } #endif |