mq_notify: block all (application) signals in the worker thread
[musl] / include / link.h
index c30431e..8150185 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _LINK_H
 #define _LINK_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <elf.h>
 #define __NEED_size_t
 #define __NEED_uint32_t
@@ -12,8 +16,7 @@
 #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;
@@ -43,4 +46,8 @@ struct r_debug {
 
 int dl_iterate_phdr(int (*)(struct dl_phdr_info *, size_t, void *), void *);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif