Fix compile of programs/winedbg/elf.c on NetBSD 1.6

Eric Pouech pouech-eric at
Sun Feb 22 11:07:10 CST 2004

Yorick Hardy a écrit :
> 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,
both STN_UNDEF and SHN_UNDEF exist in ELF definition and are meant to be 
used in different cases, which your patch mixes. Hence the fix is wrong 
(even if by change STN_UNDEF and SHN_UNDEF both are defined as 0)
So, I'd rather suggest something (at the top of the file) as
#ifndef STN_UNDEF
# define STN_UNDEF 0


More information about the wine-devel mailing list