$NetBSD: patch-ah,v 1.1 2006/10/07 22:39:28 schwarz Exp $ --- ./Library/Implementation/tcp.h.orig 2006-10-07 22:59:41.000000000 +0200 +++ ./Library/Implementation/tcp.h 2006-10-07 23:00:26.000000000 +0200 @@ -722,7 +722,7 @@ #ifdef unix /* if this is to compile on a UNIX machine */ #define GOT_READ_DIR 1 /* if directory reading functions are available */ -#ifndef NeXT +#if !defined(NeXT) && !defined(__APPLE__) #define USE_DIRENT /* Try this all the time, Henrik May 29 94 */ #endif #ifdef USE_DIRENT /* sys v version */