void-packages/srcpkgs/libbsd/patches/musl-a_out_h.patch
Jürgen Buchmüller 3ead2f703e libbsd: really fix cross arm*-musl
Install a copy of GNU libc's a.out.h and bits/a.out.h to
have access to all the structures and constants macros.
2015-10-31 14:59:54 +01:00

25 lines
642 B
Diff

--- include/bsd/nlist.h 2013-10-10 08:14:26.000000000 +0200
+++ include/bsd/nlist.h 2015-10-31 14:32:06.038427778 +0100
@@ -28,7 +28,11 @@
#define LIBBSD_NLIST_H
#include <sys/cdefs.h>
+#if defined(__GLIBC__)
#include <a.out.h>
+#else
+#include "a.out.h"
+#endif /* !defined(__GLIBC__) */
__BEGIN_DECLS
extern int nlist(const char *filename, struct nlist *list);
--- src/nlist.c 2015-10-31 14:36:20.857402580 +0100
+++ src/nlist.c 2015-10-31 14:24:23.407473525 +0100
@@ -40,7 +40,7 @@
#include <arpa/inet.h>
#include <errno.h>
-#include <a.out.h>
+#include "nlist.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>