rsync-2.6.2pre1: In clientname.c `AI_NUMERICHOST' undeclared

Jens Schleusener Jens.Schleusener at t-systems-sfr.com
Fri Apr 30 13:30:45 GMT 2004


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
Jens.Schleusener at t-systems.com  http://www.t-systems.com/


More information about the rsync mailing list