bug-commoncpp
[Top][All Lists]
Advanced

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

Patch to compile CC++ on Linuxes 2.0.x


From: Federico Montesino Pouzols
Subject: Patch to compile CC++ on Linuxes 2.0.x
Date: Tue, 4 Sep 2001 13:33:04 +0200

        Hi everybody,

        When compiling Common C++ 1.5.1 on old 2.0.x Linuxes,
everything goes well except atomic, because in that systems the
definition of atomic_t in asm/atomic.h, instead of this:

        typedef struct { volatile int counter; } atomic_t;

        is like this:

        typedef volatile int atomic_t;
 
        what circumvents AC_EGREP_HEADER and causes compiling errors
in the constructors of AtomicCounter, in mutex.cpp.

        I attach a patch to compile Common C++ on Linuxes 2.0.x with
kernel atomics. The patch modifies m4/ost_pthread.m4 and
posix/mutex.cpp to define and take into account
HAVE_ASM_ATOMIC_NOSTRUCT_BUT_INT.

Attachment: patch-cc++-linuxes-2.0.x.tar.gz
Description: application/gunzip


reply via email to

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