Fixed ftp support with uClibc due to differing inet_ntoa_r() behaviour.
[platform/upstream/curl.git] / lib / inet_ntoa_r.h
1 #ifndef __INET_NTOA_R_H
2 #define __INET_NTOA_R_H
3
4 #include "setup.h"
5
6 #ifdef HAVE_INET_NTOA_R_2_ARGS
7 /*
8  * uClibc 0.9.26 (at least) doesn't define this prototype. The buffer
9  * must be at least 16 characters long.
10  */
11 char *inet_ntoa_r(const struct in_addr in, char buffer[]);
12
13 #else
14 /*
15  * My solaris 5.6 system running gcc 2.8.1 does *not* have this prototype
16  * in any system include file! Isn't that weird?
17  */
18 char *inet_ntoa_r(const struct in_addr in, char *buffer, int buflen);
19
20 #endif
21
22 #endif