[PATCH] Fix Linux-PAM 0.99.3.0 compiling when system headers don't define HOST_NAME_MAX. (fwd)

Thorsten Kukuk kukuk at suse.de
Sun Jan 29 14:41:28 UTC 2006


On Sun, Jan 29, Dan Yefimov wrote:

> 				Hello!
> 	While compiling Linux-PAM 0.99.3.0 I've discovered that on my system 
> compiling modules/pam_echo/pam_echo.c fails because of HOST_NAME_MAX is 
> undefined on my system. Attached a patch that simply defines HOST_NAME_MAX to 
> either MAXHOSTNAME (if that is defined in sys/param.h, which is my case) or to 
> 64, if the former is not defined (which is unlikely, but...). The patch is 
> applied to configure.in only (of course, after that autoreconf should be 
> invoked). Please apply.

There is already another fix in CVS for pam_echo.c


-- 
Thorsten Kukuk         http://www.suse.de/~kukuk/      kukuk at suse.de
SUSE LINUX Products GmbH       Maxfeldstr. 5       D-90409 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B




More information about the Pam-list mailing list