Display continous integration build status per task
[elfdbg/.git] / compat.h
CommitLineData
418b72b3
SB
1#ifndef ELFDBG_COMPAT_H
2#define ELFDBG_COMPAT_H 1
3
4/* Linux does not define the generic typedef arch independant */
5#ifdef __linux__
6#ifdef __x86_64__
7typedef Elf64_Ehdr Elf_Ehdr;
8typedef Elf64_Shdr Elf_Shdr;
9#else
10typedef Elf32_Ehdr Elf_Ehdr;
11typedef Elf32_Shdr Elf_Shdr;
12#endif
550c0ec2 13#endif
418b72b3 14
550c0ec2
SB
15#if defined(__linux__) || defined(__OpenBSD__)
16/* Linux and OpenBSD does not define strnstr() function */
418b72b3
SB
17char *strnstr(const char *, const char *, size_t);
18#endif
19
20#endif /* ELFDBG_COMPAT_H */