]> www.infradead.org Git - mtd-utils.git/commit
include/common.h: fix build against musl
authorJörg Krause <joerg.krause@embedded.rocks>
Thu, 23 Apr 2015 22:12:51 +0000 (00:12 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 28 May 2015 23:31:34 +0000 (16:31 -0700)
commitbd9ed192b5d6ee7afc49bfd383a23b50792de8c2
tree3c6c7e7653cf18a323701ef18d9bbbeb2f8221fa
parent60e251320e33240ea24611682f8ccdb4722a9010
include/common.h: fix build against musl

Like uClibc version older than (not yet released) 0.9.34 musl does not have
a rpmatch() implementation.

uClibc defines both __UCLIBC__ and __GLIBC__. So first check for uCibc and its
version and then for a non glibc implementation (like musl). Note, musl does
not define __MUSL__.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
include/common.h