--- encfs-1.1.9/encfs/PtrImpl.cpp.orig 2004-10-16 11:32:47.386334840 +0200 +++ encfs-1.1.9/encfs/PtrImpl.cpp 2004-10-16 11:42:39.156372120 +0200 @@ -22,9 +22,6 @@ #include -#ifdef HAVE_BITS_ATOMICITY_H -#include -#endif using namespace rel; using namespace std; @@ -45,21 +42,12 @@ void OVDRefCounted::retain() { -#ifdef HAVE_BITS_ATOMICITY_H - __atomic_add( &refCnt, 1 ); -#else ++refCnt; -#endif } bool OVDRefCounted::release() { -#ifdef HAVE_BITS_ATOMICITY_H - // __exchange_and_add returns what the value was *before* decrementing - if( __exchange_and_add( &refCnt, -1) <= 1) -#else if(--refCnt == 0) -#endif { destroy(); return true;