pkgsrc/devel/edcommon/patches/patch-ac
2006-03-28 17:44:08 +00:00

13 lines
622 B
Text

$NetBSD: patch-ac,v 1.2 2006/03/28 17:44:08 joerg Exp $
--- FoundationExtensions.subproj/NSFileHandle+Extensions.m.orig 2002-08-17 04:12:48.000000000 +1000
+++ FoundationExtensions.subproj/NSFileHandle+Extensions.m
@@ -144,7 +144,7 @@
format: @"PeekNamedPipe() NT Error # %d", GetLastError()];
return lpTotalBytesAvail;
-#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(linux)
+#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(linux) || defined(__NetBSD__) || defined(__DragonFly__)
int numBytes;
if(ioctl(EDSOCKETHANDLE, FIONREAD, (char *) &numBytes) == -1)