2006-03-28 19:44:08 +02:00
|
|
|
$NetBSD: patch-ac,v 1.2 2006/03/28 17:44:08 joerg Exp $
|
2004-12-30 12:56:01 +01:00
|
|
|
|
|
|
|
--- 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__)
|
2004-12-30 12:56:01 +01:00
|
|
|
int numBytes;
|
|
|
|
|
|
|
|
if(ioctl(EDSOCKETHANDLE, FIONREAD, (char *) &numBytes) == -1)
|