$NetBSD: patch-libelfsh_symbol_c,v 1.1 2011/10/02 23:50:56 dholland Exp $ - LP64 fixes --- libelfsh/symbol.c~ 2003-08-20 21:11:03.000000000 -0400 +++ libelfsh/symbol.c 2008-08-02 18:09:35.000000000 -0400 @@ -277,7 +277,7 @@ int elfsh_insert_symbol(elfshsect_t *se /* Check if symbol already exists */ orig = elfsh_get_symbol_by_name(sect->parent, name); if (orig != NULL && sym->st_value == orig->st_value) - return (((u_int) orig - (u_int) sect->data) / ELFSH_SYMTAB_ENTRY_SIZE); + return (((uintptr_t) orig - (uintptr_t) sect->data) / ELFSH_SYMTAB_ENTRY_SIZE); /* Shift some special symbols */ elfsh_shift_usualsyms(sect, sym);