src/protocols/oscar/ft.c

changeset 2711
48250db2892e
parent 2675
3f7a2935813b
child 2717
b97d1ea4e28c
equal deleted inserted replaced
2710:274f450b4aad 2711:48250db2892e
2 * File transfer (OFT) and DirectIM (ODC). 2 * File transfer (OFT) and DirectIM (ODC).
3 * (OSCAR File Transfer, Oscar Direct Connect(ion?) 3 * (OSCAR File Transfer, Oscar Direct Connect(ion?)
4 */ 4 */
5 5
6 #define FAIM_INTERNAL 6 #define FAIM_INTERNAL
7 #ifdef HAVE_CONFIG_H
8 #include <config.h>
9 #endif
7 #include <aim.h> 10 #include <aim.h>
8 11
9 12
10 #ifndef _WIN32 13 #ifndef _WIN32
11 #include <netdb.h> 14 #include <netdb.h>
774 * you need to call accept() when it's connected. returns your fd 777 * you need to call accept() when it's connected. returns your fd
775 * 778 *
776 */ 779 */
777 static int listenestablish(fu16_t portnum) 780 static int listenestablish(fu16_t portnum)
778 { 781 {
779 #if defined(__linux__) 782 #if HAVE_GETADDRINFO
780 /* XXX what other OS's support getaddrinfo? */
781 int listenfd; 783 int listenfd;
782 const int on = 1; 784 const int on = 1;
783 struct addrinfo hints, *res, *ressave; 785 struct addrinfo hints, *res, *ressave;
784 char serv[5]; 786 char serv[5];
785 787

mercurial