From: Guillem Jover Date: Fri, 20 Jan 2017 01:20:12 +0000 (+0100) Subject: Try if is not present X-Git-Tag: 0.8.4~27 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e4475738fefe3b0c7388b293e8b0828560c6b830;p=thirdparty%2Flibbsd.git Try if is not present At least musl ships the former but not the latter. --- diff --git a/include/bsd/nlist.h b/include/bsd/nlist.h index 2730237..8531f7a 100644 --- a/include/bsd/nlist.h +++ b/include/bsd/nlist.h @@ -28,7 +28,12 @@ #define LIBBSD_NLIST_H #include + +#if __has_include() #include +#elif __has_include() +#include +#endif __BEGIN_DECLS extern int nlist(const char *filename, struct nlist *list);