[patch] ATTR_MAX_VALUELEN on AIX with IBM C compiler

Jeremy Allison jra at samba.org
Mon Jan 5 20:54:56 GMT 2004

On Thu, Jan 01, 2004 at 04:09:43PM -0500, James Flemer wrote:
> When configuring Samba 3.0.0 on AIX 5.1 with the IBM C compiler
> (cc/xlc/cc_r/xlc_r), the function attr_list() is detected
> causing HAVE_ATTR_LIST to be defined.  However, sys/attributes.h
> is not detected and thus HAVE_SYS_ATTRIBUTES_H is not defined.
> When compiling, source/lib/system.c fails to compile because
> ATTR_MAX_VALUELEN is not defined.  This macro, I belive, is
> defined in sys/attributes.h on systems that have such a header.
> Consequently, the preprocessor conditionals in lib/system.c
> should me modified to require HAVE_SYS_ATTRIBUTES_H before
> trying to use attr_list().  The included patch allows system.c
> to compile with the IBM C compiler on AIX 5.1.
> The patch is against samba-3.0.0, but I expect would apply to
> 3.0.1, as well as cvs head, since this file has not changed much
> since 3.0.0.

Applied, thanks.


More information about the samba-technical mailing list