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.
patch-cc++-linuxes-2.0.x.tar.gz
Content-Type:
application/x-gunzip
Content-Encoding:
base64