changeset 31928:f0de3178dd87

The T_SRV and T_TXT defines are needed on WIN32 too.
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 19 Apr 2011 00:21:32 +0000
parents 5095ed88829a
children 9a7c5d242521
files libpurple/dnssrv.c
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/dnssrv.c	Tue Apr 19 00:20:36 2011 +0000
+++ b/libpurple/dnssrv.c	Tue Apr 19 00:21:32 2011 +0000
@@ -30,12 +30,6 @@
 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
 #include <arpa/nameser_compat.h>
 #endif
-#ifndef T_SRV
-#define T_SRV	PurpleDnsTypeSrv
-#endif
-#ifndef T_TXT
-#define T_TXT	PurpleDnsTypeTxt
-#endif
 #else /* WIN32 */
 #include <windns.h>
 /* Missing from the mingw headers */
@@ -47,6 +41,13 @@
 #endif
 #endif
 
+#ifndef T_SRV
+#define T_SRV	PurpleDnsTypeSrv
+#endif
+#ifndef T_TXT
+#define T_TXT	PurpleDnsTypeTxt
+#endif
+
 #include "debug.h"
 #include "dnssrv.h"
 #include "eventloop.h"
@@ -1042,4 +1043,4 @@
 	g_return_val_if_fail(query_data != NULL, 0);
 	
 	return query_data->type;
-}
\ No newline at end of file
+}