зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1428182 - 7. Include <link.h> in LUL for Android; r=jseward
Modern NDK headers all have <link.h>, so we should always include it, and still provide shims for anything we need that's not defined in <link.h>. MozReview-Commit-ID: GNBDIe73RFm --HG-- extra : rebase_source : 1246dce8a7ad201cf4f01de8e4912217636f1fc8
This commit is contained in:
Родитель
3daaf655bf
Коммит
149e502c72
|
@ -54,6 +54,7 @@
|
|||
// (derived from)
|
||||
// elfutils.h: Utilities for dealing with ELF files.
|
||||
//
|
||||
#include <link.h>
|
||||
|
||||
#if defined(GP_OS_android)
|
||||
|
||||
|
@ -75,17 +76,12 @@
|
|||
#define NT_GNU_BUILD_ID 3
|
||||
#endif
|
||||
|
||||
#ifndef ElfW
|
||||
#define ElfW(type) _ElfW (Elf, ELFSIZE, type)
|
||||
#define _ElfW(e,w,t) _ElfW_1 (e, w, _##t)
|
||||
#define _ElfW_1(e,w,t) e##w##t
|
||||
#endif
|
||||
|
||||
//FIXME
|
||||
extern "C" {
|
||||
extern char* basename(const char* path);
|
||||
};
|
||||
#else
|
||||
|
||||
# include <link.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче