aboutsummaryrefslogtreecommitdiff
path: root/lib/inet_ntoa_r.h
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2005-03-15 21:00:46 +0000
committerDan Fandrich <dan@coneharvesters.com>2005-03-15 21:00:46 +0000
commitefaf6886505cd29084af05aa06edc19fd71bdfe9 (patch)
tree471544cf284f9dc3e37b602e2acc9b44d440986e /lib/inet_ntoa_r.h
parent9a5c21c16f12fc3a54f94cad5a95b14e794e9009 (diff)
Fixed ftp support with uClibc due to differing inet_ntoa_r() behaviour.
Diffstat (limited to 'lib/inet_ntoa_r.h')
-rw-r--r--lib/inet_ntoa_r.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/inet_ntoa_r.h b/lib/inet_ntoa_r.h
index 7959c49c2..2c94a6a57 100644
--- a/lib/inet_ntoa_r.h
+++ b/lib/inet_ntoa_r.h
@@ -1,5 +1,16 @@
#ifndef __INET_NTOA_R_H
#define __INET_NTOA_R_H
+
+#include "setup.h"
+
+#ifdef HAVE_INET_NTOA_R_2_ARGS
+/*
+ * uClibc 0.9.26 (at least) doesn't define this prototype. The buffer
+ * must be at least 16 characters long.
+ */
+char *inet_ntoa_r(const struct in_addr in, char buffer[]);
+
+#else
/*
* My solaris 5.6 system running gcc 2.8.1 does *not* have this prototype
* in any system include file! Isn't that weird?
@@ -7,3 +18,5 @@
char *inet_ntoa_r(const struct in_addr in, char *buffer, int buflen);
#endif
+
+#endif