diff -u -r ../elfutils-0.166/libelf/elf_update.c ./libelf/elf_update.c
--- ../elfutils-0.166/libelf/elf_update.c	2015-11-27 08:36:29.000000000 -0500
+++ ./libelf/elf_update.c	2016-05-04 13:06:15.836140729 -0400
@@ -39,6 +39,7 @@
 
 #include "libelfP.h"
 
+#define off_t loff_t
 
 static off_t
 write_file (Elf *elf, off_t size, int change_bo, size_t shnum)