Fix compile of programs/winedbg/elf.c on NetBSD 1.6
Yorick Hardy
yh at metroweb.co.za
Sun Feb 22 05:44:44 CST 2004
Changelog: Use SHN_UNDEF instead of STN_UNDEF when it is defined
and STN_UNDEF is not. Fixes compiling on NetBSD 1.6.
Kind regards,
--
Yorick Hardy
--- programs/winedbg/elf.c Fri Feb 6 07:22:14 2004
+++ programs/winedbg/elf.c Sun Feb 8 18:41:41 2004
@@ -109,8 +109,15 @@
* Ignore certain types of entries which really aren't of that much
* interest.
*/
+#ifdef STN_UNDEF
if (ELF32_ST_TYPE(symp->st_info) == STT_SECTION ||
symp->st_shndx == STN_UNDEF)
+#elif defined(SHN_UNDEF)
+ if (ELF32_ST_TYPE(symp->st_info) == STT_SECTION ||
+ symp->st_shndx == SHN_UNDEF)
+#else
+ if (ELF32_ST_TYPE(symp->st_info) == STT_SECTION)
+#endif /* STN_UNDEF */
{
continue;
}
More information about the wine-patches
mailing list