]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
assert: __STRING is not defined by musl libc. Define __STRING when it is missing. 6210/head
authorJohn Coyle <dx9err@gmail.com>
Fri, 9 Oct 2015 03:25:36 +0000 (23:25 -0400)
committerJohn Coyle <dx9err@gmail.com>
Sun, 18 Oct 2015 19:16:47 +0000 (15:16 -0400)
Signed-off-by: John Coyle <dx9err@gmail.com>
src/include/assert.h

index ec0aa34d601f89be9e5addffea7369017c01631b..707cce0b3980d72064fc0bc5610a755c2f66c872 100644 (file)
@@ -3,6 +3,11 @@
 
 #if defined(__linux__)
 #include <features.h>
+
+#ifndef __STRING
+# define __STRING(x) #x
+#endif
+
 #elif defined(__FreeBSD__)
 #include <sys/cdefs.h>
 #define        __GNUC_PREREQ(minor, major)     __GNUC_PREREQ__(minor, major)