Fix for cygwin

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4331 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-06-02 04:19:41 +00:00
parent 91c136b68c
commit 702324e292
2 changed files with 4 additions and 4 deletions

View file

@ -56,7 +56,7 @@
#include <base/preface.h>
/* One of these two should have MAXHOSTNAMELEN */
#ifndef __WIN32__
#if !defined(__WIN32__) || defined(__CYGWIN__)
#include <unistd.h>
#include <sys/param.h>
#include <netdb.h>
@ -348,7 +348,7 @@ extern char** _environ;
#undef main
int main(int argc, char *argv[], char *env[])
{
#ifdef __WIN32__
#if defined(__WIN32__) && !defined(__CYGWIN__)
WSADATA lpWSAData;
// Initialize Windows Sockets
@ -431,7 +431,7 @@ int main(int argc, char *argv[], char *env[])
int pid;
#if defined(__WIN32__)
pid = (int)GetCurrentProcessId(),
pid = (int)GetCurrentProcessId();
#else
pid = (int)getpid();
#endif

View file

@ -37,7 +37,7 @@
#include <Foundation/NSDebug.h>
#include <sys/types.h>
#ifndef __WIN32__
#if !defined(__WIN32__) || defiend(__CYGWIN__)
#include <time.h>
#include <sys/time.h>
#endif /* !__WIN32__ */