]> andersk Git - gssapi-openssh.git/blobdiff - openssh/openbsd-compat/getrrsetbyname.c
Import of OpenSSH 4.4p1
[gssapi-openssh.git] / openssh / openbsd-compat / getrrsetbyname.c
index bea6aea3b5bd90524b490299d2da98b62d1885fe..6c86e02c2ab0805dbe8c7629ba47bf3b0d9b0a96 100644 (file)
 
 #ifndef HAVE_GETRRSETBYNAME
 
+#include <stdlib.h>
+#include <string.h>
+
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
 #include "getrrsetbyname.h"
 
 #if defined(HAVE_DECL_H_ERRNO) && !HAVE_DECL_H_ERRNO
@@ -60,6 +66,13 @@ extern int h_errno;
 # undef _THREAD_PRIVATE
 #endif
 #define _THREAD_PRIVATE(a,b,c) (c)
+
+/* to avoid conflicts where a platform already has _res */
+#ifdef _res
+# undef _res
+#endif
+#define _res   _compat_res
+
 struct __res_state _res;
 
 /* Necessary functions and macros */
This page took 0.031777 seconds and 4 git commands to generate.