void-packages/srcpkgs/libbsd/patches/musl-a_out_h.patch
2016-04-23 20:14:25 +02:00

26 lines
662 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 <fcntl.h>
-#include <a.out.h>
+#include "nlist.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>