mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 13:40:34 -04:00
The port was marked broken, but compiled anyway when BROKEN= was commnted out. I took it upon myself to fix it so the lates version builds. For whatever reason the libiberty configure script bombs. Instead of patching/and fixing it I added a dependency on devel/freelibiberty. That solves that problem. Cleaned up the installation of PORTDOCS in the Makefile and pkg-plist. Regenerated all the patch files since many of the original ones had no contextual lines and would apply without error where the patch should have bombed. So the following patch files are to be removed: PR: ports/63473 Submitted by: Yarema <yds@CoolRat.org> Approved by: Maintainer timeout
32 lines
967 B
C
32 lines
967 B
C
--- 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 @@
|
|
int flags = fcntl(fileno(fp), F_GETFL, 0);
|
|
if (flags == -1)
|
|
_raiseIOWarning("cannot get file descriptor status flags");
|
|
- if (fcntl(fileno(fp), F_SETFL, flags | O_NONBLOCK) == -1)
|
|
- _raiseIOWarning("cannot set file to non-blocking mode");
|
|
+ if (fcntl(fileno(fp), F_SETFL, flags | O_NONBLOCK) == -1) {
|
|
+#if defined(__FreeBSD__)
|
|
+ if(errno != EAGAIN)
|
|
+#endif
|
|
+ _raiseIOWarning("cannot set file to non-blocking mode");
|
|
+ }
|
|
#endif
|
|
|
|
// Read stuff
|
|
@@ -255,8 +259,12 @@
|
|
|
|
#if HAVE_FCNTL && defined(F_SETFL)
|
|
// Reset file state
|
|
- if (fcntl(fileno(fp), F_SETFL, flags) == -1)
|
|
- _raiseIOWarning("cannot restore file mode");
|
|
+ if (fcntl(fileno(fp), F_SETFL, flags) == -1) {
|
|
+#if defined(__FreeBSD__)
|
|
+ if(errno != EAGAIN)
|
|
+#endif
|
|
+ _raiseIOWarning("cannot restore file mode");
|
|
+ }
|
|
#endif
|
|
|
|
return nitems;
|