From: Daniel Golle Date: Fri, 5 Mar 2021 01:33:22 +0000 (+0000) Subject: libfstools: fix build with glibc X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=3c38f0c889177dfac51fa7213c567a110709be71;p=project%2Ffstools.git libfstools: fix build with glibc stropts.h which is unavailable under glibc (and not needed when building against glibc). Include it only if not building against glibc. Reported by: @DazzyWalkman Signed-off-by: Daniel Golle --- diff --git a/libfstools/common.h b/libfstools/common.h index 6798a54..eeb24db 100644 --- a/libfstools/common.h +++ b/libfstools/common.h @@ -11,7 +11,9 @@ #include #include #include +#ifndef __GLIBC__ #include +#endif #include #include #include