projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mq_notify: block all (application) signals in the worker thread
[musl]
/
include
/
link.h
diff --git
a/include/link.h
b/include/link.h
index
c30431e
..
8150185
100644
(file)
--- a/
include/link.h
+++ b/
include/link.h
@@
-1,6
+1,10
@@
#ifndef _LINK_H
#define _LINK_H
#ifndef _LINK_H
#define _LINK_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <elf.h>
#define __NEED_size_t
#define __NEED_uint32_t
#include <elf.h>
#define __NEED_size_t
#define __NEED_uint32_t
@@
-12,8
+16,7
@@
#define ElfW(type) Elf32_ ## type
#endif
#define ElfW(type) Elf32_ ## type
#endif
-/* this is the same everywhere except alpha and s390 */
-typedef uint32_t Elf_Symndx;
+#include <bits/link.h>
struct dl_phdr_info {
ElfW(Addr) dlpi_addr;
struct dl_phdr_info {
ElfW(Addr) dlpi_addr;
@@
-43,4
+46,8
@@
struct r_debug {
int dl_iterate_phdr(int (*)(struct dl_phdr_info *, size_t, void *), void *);
int dl_iterate_phdr(int (*)(struct dl_phdr_info *, size_t, void *), void *);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif