More mingw ports

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7507 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2000-09-13 21:10:52 +00:00
parent 9dda3a1adb
commit 2b652c7503
3 changed files with 7 additions and 1 deletions

View file

@ -13,6 +13,7 @@
* Source/NSFileManager.m (-findNextFile): Check if lstat, * Source/NSFileManager.m (-findNextFile): Check if lstat,
geteuid implemented. geteuid implemented.
* Source/NSHost.m: Change includes for MINGW. * Source/NSHost.m: Change includes for MINGW.
* Source/NSPortNameServer.m: Likewise.
* Source/NSPipe.m (init): Port to MINGW. * Source/NSPipe.m (init): Port to MINGW.
* configure.in: Do preface.h substitutions here. * configure.in: Do preface.h substitutions here.

View file

@ -375,7 +375,7 @@ static Class runLoopClass;
} }
#ifdef __MINGW__ #ifdef __MINGW__
dummy = 1; dummy = 1;
if (ioctlsocket(udp_desc, FIONBIO, &dummy) < 0) if (ioctlsocket(d, FIONBIO, &dummy) < 0)
{ {
NSLog(@"unable to set non-blocking mode - %s", strerror(errno)); NSLog(@"unable to set non-blocking mode - %s", strerror(errno));
return nil; return nil;

View file

@ -39,8 +39,13 @@
#include <Foundation/NSTimer.h> #include <Foundation/NSTimer.h>
#include <Foundation/NSPortNameServer.h> #include <Foundation/NSPortNameServer.h>
#include <Foundation/NSDebug.h> #include <Foundation/NSDebug.h>
#ifdef __MINGW__
#include <winsock.h>
#include <wininet.h>
#else
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#endif
/* /*
* Protocol definition stuff for talking to gdomap process. * Protocol definition stuff for talking to gdomap process.