aboutsummaryrefslogtreecommitdiff
path: root/lib/inet_ntoa_r.h
diff options
context:
space:
mode:
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