basho/leveldb — pull request #37 by jonmeredith (2012-07-31 04:20:44+00:00)
Title: Added solaris-specific version of the ref counting atomics

Resolves

```
c++ -D_REENTRANT -m64 -fPIC -I /export/home/buildbot/masters/riak/riak_ee-build-solaris-10u9-64/build/deps/eleveldb/c_src/system/include -I. -I./include -fno-builtin-memcmp -D_REENTRANT -DOS_SOLARIS -DLEVELDB_PLATFORM_POSIX -DSNAPPY -O2 -DNDEBUG -fPIC -c util/cache.cc -o util/cache.o
util/cache.cc: In member function `leveldb::Cache::Handle* leveldb::::LRUCache::Lookup(const leveldb::Slice&, uint32_t)':
util/cache.cc:266: error: `__sync_add_and_fetch' undeclared (first use this function)
util/cache.cc:266: error: (Each undeclared identifier is reported only once for each function it appears in.)
```

Passes Joe's C++ crasher (and verified it crashed before).