[PATCH] AIX BOOL conflict in tdb + largefile issue
Stefan (metze) Metzmacher
metze at samba.org
Wed Sep 20 17:46:28 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Peter Somogyi schrieb:
> I've got the following 2 separate compile errors on AIX 5.3 with trunk:
> Attached a symptomatic treatment patch (svn.diff) for AIX. However, this BOOL
> conflict is a much more common issue under AIX... (I've tried,
> somehow /usr/include/stdbool.h gets included in tdb... Unfortunately, many
> AIX headers also use _BOOL for guarding its different _Bool and friends...)
> I'd suggest testing this patch on other platforms, too - but strongly advise
> renaming the _BOOL macro everywhere...
I just noticed that we have this in include/includes.h
typedef int BOOL;
#define _BOOL /* So we don't typedef BOOL again in vfs.h */
does this _BOOL conflict with the stuff in the aix headers?
or is _BOOL used there for uppercase BOOL too?
for now I'll add exatly the above to tdbutil.h
to consitantly typedef BOOL to int.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the samba-technical