#include the local "inet_ntoa_r.h" file if no proto was found in the global
authorDaniel Stenberg <daniel@haxx.se>
Fri, 4 Jan 2002 09:35:23 +0000 (09:35 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 4 Jan 2002 09:35:23 +0000 (09:35 +0000)
header directory but the function *is* present!

lib/ftp.c

index 0ac5d4d2b71037c7d11db2c0106dbf139a18eed9..1acf2dd7e426207f897458a05c20dfa897b9aa64 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
 #include "ssluse.h"
 #include "connect.h"
 
+#if defined(HAVE_INET_NTOA_R) && !defined(HAVE_INET_NTOA_R_DECL)
+#include "inet_ntoa_r.h"
+#endif
+
 #define _MPRINTF_REPLACE /* use our functions only */
 #include <curl/mprintf.h>