lockdev: fix build with the musl C library
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 22 Dec 2015 20:39:17 +0000 (21:39 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 22 Dec 2015 20:39:17 +0000 (21:39 +0100)
commitc61e97a4d9779e72004e563d00e7985104cba462
treef54307364b90dea7f1d11059bf8772e146f343a8
parent2badd96d9e933afc052f78c1a91cdc5dd98e1a1f
lockdev: fix build with the musl C library

When the musl C library is used, the __GNU_LIBRARY__ symbol is not
defined, so the lockdev code doesn't know what to do. To work around
this, we explicitly pass __GNU_LIBRARY__ when building with musl, this
musl provides what's needed for lockdev to build, as if we were
building against glibc.

Fixes:

  http://autobuild.buildroot.org/results/9db/9db4ab40955d3af0027e141245d73ee6c614fb1f/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/lockdev/lockdev.mk