]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer, atomic: Explicitly include assert.h where asserts are used.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Thu, 7 Apr 2011 00:00:39 +0000 (17:00 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Thu, 7 Apr 2011 17:53:19 +0000 (10:53 -0700)
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
src/include/atomic.h
src/include/buffer.h

index b19f36f041452c8e2693099f1495ba36e05a3099..e0e70370bc09580d4233e9601ddcdb0c92149ce9 100644 (file)
@@ -55,6 +55,7 @@ public:
  * crappy slow implementation that uses a pthreads spinlock.
  */
 #include "include/Spinlock.h"
+#include "include/assert.h"
 
 namespace ceph {
 
index d9dd393521517926a8ceede1ac3026039f9821d2..8b9187d64b3f2efc4b5a0587c5e6c7fe02bc1dbe 100644 (file)
@@ -56,7 +56,9 @@ void  *valloc(size_t);
 #include "page.h"
 #include "crc32c.h"
 
-#ifndef __CEPH__
+#ifdef __CEPH__
+# include "include/assert.h"
+#else
 # include <assert.h>
 #endif