Mercurial > pidgin
comparison src/dnssrv.c @ 11898:8d019c4bf454
[gaim-migrate @ 14189]
I think this might fix the FreeBSD compile issues reported on gaim-devel
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 30 Oct 2005 17:02:40 +0000 |
parents | 33cdc34b3a63 |
children | 97167ff86683 |
comparison
equal
deleted
inserted
replaced
11897:a1aa681f1448 | 11898:8d019c4bf454 |
---|---|
17 * | 17 * |
18 * You should have received a copy of the GNU General Public License | 18 * You should have received a copy of the GNU General Public License |
19 * along with this program; if not, write to the Free Software | 19 * along with this program; if not, write to the Free Software |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 */ | 21 */ |
22 #include <glib.h> | 22 |
23 #include "internal.h" | |
24 | |
23 #ifndef _WIN32 | 25 #ifndef _WIN32 |
24 #include <resolv.h> | 26 #include <resolv.h> |
25 #include <stdlib.h> | |
26 #include <arpa/nameser.h> | 27 #include <arpa/nameser.h> |
27 #include <arpa/nameser_compat.h> | 28 #include <arpa/nameser_compat.h> |
28 #ifndef T_SRV | 29 #ifndef T_SRV |
29 #define T_SRV 33 | 30 #define T_SRV 33 |
30 #endif | 31 #endif |
31 #else | 32 #else |
32 #include "win32dep.h" | |
33 #include <windns.h> | 33 #include <windns.h> |
34 /* Missing from the mingw headers */ | 34 /* Missing from the mingw headers */ |
35 #ifndef DNS_TYPE_SRV | 35 #ifndef DNS_TYPE_SRV |
36 # define DNS_TYPE_SRV 33 | 36 # define DNS_TYPE_SRV 33 |
37 #endif | 37 #endif |
38 #endif | 38 #endif |
39 | 39 |
40 #include "dnssrv.h" | 40 #include "dnssrv.h" |
41 #include <stdio.h> | |
42 #include <unistd.h> | |
43 #include <string.h> | |
44 #include "eventloop.h" | 41 #include "eventloop.h" |
45 #include "debug.h" | 42 #include "debug.h" |
46 | 43 |
47 #ifndef _WIN32 | 44 #ifndef _WIN32 |
48 typedef union { | 45 typedef union { |