From 91be46a8614a6e52aabac839b3251a03f3f155e4 Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Sun, 18 Oct 2009 07:50:22 +0000 Subject: [PATCH] Ticket #1726 (AI_ADDRCONFIG fix) fixed undeclared AI_ADDRCONFIG under uclibc <0.9.29 Signed-off-by: Ilia Maslakov --- vfs/ftpfs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vfs/ftpfs.c b/vfs/ftpfs.c index 135733270..846890a40 100644 --- a/vfs/ftpfs.c +++ b/vfs/ftpfs.c @@ -109,6 +109,11 @@ What to do with this? #define INADDR_NONE 0xffffffff #endif +/* for uclibc < 0.9.29 */ +#ifndef AI_ADDRCONFIG +#define AI_ADDRCONFIG 0x0020 +#endif + #define RFC_AUTODETECT 0 #define RFC_DARING 1 #define RFC_STRICT 2