src/protocols/zephyr/ZOpenPort.c

changeset 10867
b39f9b646d6c
parent 8792
b0645c9dc276
child 11105
842fa517e08c
equal deleted inserted replaced
10866:40eab743e22b 10867:b39f9b646d6c
2 * It contains source for the ZOpenPort function. 2 * It contains source for the ZOpenPort function.
3 * 3 *
4 * Created by: Robert French 4 * Created by: Robert French
5 * 5 *
6 * $Source$ 6 * $Source$
7 * $Author: chipx86 $ 7 * $Author: thekingant $
8 * 8 *
9 * Copyright (c) 1987 by the Massachusetts Institute of Technology. 9 * Copyright (c) 1987 by the Massachusetts Institute of Technology.
10 * For copying and distribution information, see the file 10 * For copying and distribution information, see the file
11 * "mit-copyright.h". 11 * "mit-copyright.h".
12 */ 12 */
15 #ifndef lint 15 #ifndef lint
16 static char rcsid_ZOpenPort_c[] = "$Header$"; 16 static char rcsid_ZOpenPort_c[] = "$Header$";
17 #endif 17 #endif
18 18
19 #include "internal.h" 19 #include "internal.h"
20 #ifdef WIN32
21 #include <winsock2.h>
22 #else
20 #include <sys/socket.h> 23 #include <sys/socket.h>
24 #endif
21 25
22 Code_t ZOpenPort(port) 26 Code_t ZOpenPort(port)
23 unsigned short *port; 27 unsigned short *port;
24 { 28 {
25 struct sockaddr_in bindin; 29 struct sockaddr_in bindin;

mercurial