pkgsrc/devel/edcommon/patches/patch-ac

14 lines
622 B
Text
Raw Normal View History

2006-03-28 19:44:08 +02:00
$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)
2006-03-28 19:44:08 +02:00
+#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(linux) || defined(__NetBSD__) || defined(__DragonFly__)
int numBytes;
if(ioctl(EDSOCKETHANDLE, FIONREAD, (char *) &numBytes) == -1)