samba-technical@lists.samba.org
[Top] [All Lists]

Re: [PATCH] AIX BOOL conflict in tdb + largefile issue

Subject: Re: [PATCH] AIX BOOL conflict in tdb + largefile issue
From: "Stefan (metze) Metzmacher"
Date: Wed, 20 Sep 2006 19:46:28 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Somogyi schrieb:
> Hi,
> 
> 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

#ifndef _BOOL
typedef int BOOL;
#define _BOOL       /* So we don't typedef BOOL again in vfs.h */
#endif

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.

metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFFEX50m70gjA5TCD8RAigrAKCwhNSIpykV6hq/57VF0qECzUJ6ZACfQ6UK
4JBxeaImP267BOKkAqOTq6o=
=9jiU
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>