bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch to fix detection of {bits,ext}/atomicity.h with gcc >=4.2.0


From: Tiziano Müller
Subject: Patch to fix detection of {bits,ext}/atomicity.h with gcc >=4.2.0
Date: Mon, 24 Dec 2007 10:40:29 +0100
User-agent: Mutt/1.5.16 (2007-06-09)

Hi there,

Since the bits/atomicity.h has been moved to ext/atomicity.h for gcc
>=4.2.0, a couple applications depending on commoncpp2 show build errors
>when building.
One part of the patch updates m4/ost_pthread.m4 to check for
ext/atomicity.h as well, the other part adds HAVE_EXT_ATOMICITY.H to
config.h.in and adds a define switch to include the right header-file.

I'd not hardcode either bits/atomicity.h or ext/atomicity.h depending on
the configure-results in the config.h since someone might build/have
built commoncpp with gcc-4.1.0 and then build the app with gcc-4.2.2
(or vice versa).

Cheers,
Tiziano

-- 
Tiziano Müller
Gentoo Linux Developer
Areas of responsibility: Samba, PostgreSQL, cpp, Python
E-Mail     : address@hidden
GnuPG FP   : F327 283A E769 2E36 18D5  4DE2 1B05 6A63 AE9C 1E30

Attachment: 1.6.1-gcc42_atomicity.patch
Description: Text document

Attachment: pgpxSfW6VNBBW.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]