Allow compiling for Windows XP and higher.
[tinc] / lib / fake-getnameinfo.h
index 3f215e1..02ac77a 100644 (file)
@@ -1,14 +1,9 @@
-/* $Id: fake-getnameinfo.h,v 1.1.2.1 2002/07/12 11:45:21 guus Exp $ */
+/* $Id$ */
 
 #ifndef _FAKE_GETNAMEINFO_H
 #define _FAKE_GETNAMEINFO_H
 
-#include "config.h"
-
-#include <sys/socket.h>
-#include <netdb.h>
-
-#ifndef HAVE_GETNAMEINFO
+#if !HAVE_DECL_GETNAMEINFO
 int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, 
                 size_t hostlen, char *serv, size_t servlen, int flags);
 #endif /* !HAVE_GETNAMEINFO */