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

2004-04-30 Thread Jens Schleusener
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 SchleusenerT-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


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

2004-04-30 Thread Wayne Davison
On Fri, Apr 30, 2004 at 03:30:45PM +0200, Jens Schleusener wrote:
  #ifdef AI_NUMERICHOST
hints.ai_flags = AI_NUMERICHOST;
  #endif

Thanks, I've added the #ifdef as you suggested.

..wayne..
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html