This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
[B20] porting code from Unix to Windows NT
- To: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>
- Subject: [B20] porting code from Unix to Windows NT
- From: Chris <Christine dot Pourcelot at inria dot fr>
- Date: Mon, 30 Nov 1998 13:57:59 +0100
- Organization: INRIA
hello
I'm trying to port some Unix code to Windows Nt with Cygwin tools. My
problem is that code handles sockets and I can't compile the source.
I've put #define Win32_winsock and #include 'windows.h' in my source.
But in my Unix code (somebody else wrote it, not me... I'm novice with
unix ans C programming) SOCKET is defined like this :
typedef struct sockaddr_un SOCKET;
sockaddr_un is defined in sys/un.h like this :
/*
* definitions for Unix IPC domain.
*/
#if defined(_SOCKADDR_LEN) || defined(_KERNEL) ||
defined(_XOPEN_SOURCE_EXTENDED)
struct sockaddr_un {
unsigned char sun_len;
sa_family_t sun_family;
char sun_path[104];
};
#else
struct sockaddr_un {
unsigned short sun_familly;
char sun_path[104];
}
#endif
my unix code uses sun_path and sun_family...
in Sockets.h (cygwin), SOCKETis defined as an unsigned int
Did anybody have the same problem ? Can anybody help me ?
Thanks
--
stagiaire projet CODES (INRIA ROCQUENCOURT)
Christine.Pourcelot@inria.fr
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".