Applied mingw fixes by Mateu Batle

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19242 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2004-05-06 12:10:03 +00:00
parent 46e30f1fd0
commit 0407dc9e41
5 changed files with 17 additions and 7 deletions

View file

@ -611,7 +611,7 @@ static Class runLoopClass;
desc, inet_ntoa(sockAddr.sin_addr), ntohs(sockAddr.sin_port)];
}
- (SOCKET) descriptor
- (int) descriptor
{
return desc;
}
@ -1583,7 +1583,7 @@ static unsigned wordAlign;
* This is a callback method used by the NSRunLoop class to determine which
* descriptors to watch for the port.
*/
- (void) getFds: (SOCKET*)fds count: (int*)count
- (void) getFds: (int*)fds count: (int*)count
{
NSMapEnumerator me;
SOCKET sock;
@ -1894,7 +1894,7 @@ static unsigned wordAlign;
handle->recvPort = nil;
}
NSMapRemove(handles, (void*)(gsaddr)[handle descriptor]);
if (listener < 0 && NSCountMapTable(handles) == 0)
if (((int) listener) < 0 && NSCountMapTable(handles) == 0)
{
[self invalidate];
}

View file

@ -851,6 +851,9 @@ NSTemporaryDirectory(void)
perm = [[attr objectForKey: NSFilePosixPermissions] intValue];
perm = perm & 0777;
// Mateu Batle: secure temporary directories don't work in MinGW
#ifndef __MINGW__
#if defined(__MINGW__)
uid = owner;
#else
@ -900,6 +903,7 @@ NSTemporaryDirectory(void)
return nil; /* Not reached. */
}
}
#endif
if ([manager isWritableFileAtPath: tempDirName] == NO)
{