Only compile raw socket code when it is supported on that platform.
[oweals/tinc.git] / lib / fake-getnameinfo.h
index a95b081d1cc36c7f4c7fda4b46485a7c9daed797..4389a8febdb5a33759daeded1ea990ce857d6e29 100644 (file)
@@ -1,9 +1,7 @@
-/* $Id: fake-getnameinfo.h,v 1.2 2003/08/24 20:38:20 guus Exp $ */
-
 #ifndef _FAKE_GETNAMEINFO_H
 #define _FAKE_GETNAMEINFO_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 */