mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 11:17:37 +01:00
Try <linux/a.out.h> if <a.out.h> is not present
At least musl ships the former but not the latter.
This commit is contained in:
parent
d6c35f618c
commit
e4475738fe
@ -28,7 +28,12 @@
|
|||||||
#define LIBBSD_NLIST_H
|
#define LIBBSD_NLIST_H
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
|
#if __has_include(<a.out.h>)
|
||||||
#include <a.out.h>
|
#include <a.out.h>
|
||||||
|
#elif __has_include(<linux/a.out.h>)
|
||||||
|
#include <linux/a.out.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
extern int nlist(const char *filename, struct nlist *list);
|
extern int nlist(const char *filename, struct nlist *list);
|
||||||
|
Loading…
Reference in New Issue
Block a user