diff options
author | jsorg71 <jsorg71> | 2005-03-11 02:23:30 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-03-11 02:23:30 +0000 |
commit | 5140dac0f5d95b388e782fc686beb3dc474f7c9a (patch) | |
tree | 443bec3d095f4e1a29510e8566dbc318182817f1 /common/os_calls.c | |
parent | 777893bdd6f4e98f2074ccc3b9f0d890bc2ac387 (diff) | |
download | xrdp-proprietary-5140dac0f5d95b388e782fc686beb3dc474f7c9a.tar.gz xrdp-proprietary-5140dac0f5d95b388e782fc686beb3dc474f7c9a.zip |
makefile and header changes
Diffstat (limited to 'common/os_calls.c')
-rw-r--r-- | common/os_calls.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index 48893766..eb0c61bc 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -310,10 +310,11 @@ int g_tcp_socket(void) /*****************************************************************************/ int g_tcp_local_socket(void) { - int rv; - - rv = socket(PF_LOCAL, SOCK_STREAM, 0); - return rv; +#if defined(_WIN32) + return 0; +#else + return socket(PF_LOCAL, SOCK_STREAM, 0); +#endif } /*****************************************************************************/ @@ -391,12 +392,16 @@ int g_tcp_bind(int sck, char* port) /*****************************************************************************/ int g_tcp_local_bind(int sck, char* port) { +#if defined(_WIN32) + return -1; +#else struct sockaddr_un s; memset(&s, 0, sizeof(struct sockaddr_un)); s.sun_family = AF_UNIX; strcpy(s.sun_path, port); return bind(sck, (struct sockaddr*)&s, sizeof(struct sockaddr_un)); +#endif } /*****************************************************************************/ |