comparison src/protocols/oscar/ft.c @ 2711:b7455c506979

[gaim-migrate @ 2724] eh. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 13 Nov 2001 06:30:37 +0000
parents e759254b29bb
children 03bf072c6238
comparison
equal deleted inserted replaced
2710:66e5c6a08bbb 2711:b7455c506979
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