]> andersk Git - gssapi-openssh.git/blobdiff - openssh/openbsd-compat/fake-rfc2553.c
fix bug in openssh patch
[gssapi-openssh.git] / openssh / openbsd-compat / fake-rfc2553.c
index b9ac085c3a3d499112f97c551e2a1fa303b10664..b6ea3d21e3425c2a2a070e2ea006e1a562895fff 100644 (file)
 
 #include "includes.h"
 
-RCSID("$Id$");
+#include <stdlib.h>
+#include <string.h>
+
+#include <netinet/in.h>
+#include <arpa/inet.h>
 
 #ifndef HAVE_GETNAMEINFO
 int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, 
@@ -77,7 +81,11 @@ int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
 #endif /* !HAVE_GETNAMEINFO */
 
 #ifndef HAVE_GAI_STRERROR
+#ifdef HAVE_CONST_GAI_STRERROR_PROTO
+const char *
+#else
 char *
+#endif
 gai_strerror(int err)
 {
        switch (err) {
This page took 0.562939 seconds and 4 git commands to generate.