Hi,

I just tried to compile rsync-2.6.2pre1 under AIX 4.3 (gcc 2.95.3) and got
the following compiler error:

 gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c clientname.c
     -o clientname.o
 clientname.c: In function `client_name':
 clientname.c:121: `AI_NUMERICHOST' undeclared (first use in this function)

In analogy to the coding in access.c I replaced in clientname.c

 hints.ai_flags = AI_NUMERICHOST;

by

 #ifdef AI_NUMERICHOST
   hints.ai_flags = AI_NUMERICHOST;
 #endif

and the compiling works.

Sorry, I am not a C expert.

Jens

-- 
Dr. Jens Schleusener            T-Systems Solutions for Research GmbH
Tel: +49 551 709-2493           Bunsenstr.10
Fax: +49 551 709-2169           D-37073 Goettingen
[EMAIL PROTECTED]  http://www.t-systems.com/
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to