Oops. Include errno.h even if gai_strerror isn't being defined
authorKen Raeburn <raeburn@mit.edu>
Thu, 21 Aug 2003 02:52:07 +0000 (02:52 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 21 Aug 2003 02:52:07 +0000 (02:52 +0000)
ticket: 1380
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15782 dc483132-0cff-0310-8789-dd5450dbe970

src/include/fake-addrinfo.h

index eec9e4bc11afd571ec1f6f19ebd4844cffdcb2ef..19c212ab2d4724d3c3b4f6b188986fd07ee1c9b9 100644 (file)
@@ -1030,8 +1030,8 @@ fake_getnameinfo (const struct sockaddr *sa, socklen_t len,
 }
 #endif
 
-#if defined(HAVE_FAKE_GETADDRINFO) || defined(NEED_FAKE_GETNAMEINFO)
 #include <errno.h>
+#if defined(HAVE_FAKE_GETADDRINFO) || defined(NEED_FAKE_GETNAMEINFO)
 
 static inline
 char *gai_strerror (int code)