60 lines
2.1 KiB
Diff
60 lines
2.1 KiB
Diff
|
http://bugs.gentoo.org/show_bug.cgi?id=204208
|
||
|
libelf.h should use __off64_t, as off64_t is not always defined.
|
||
|
2008-01-03 Martin von Gagern
|
||
|
|
||
|
diff -ur elfutils-0.131/libelf/libelf.h elfutils/libelf/libelf.h
|
||
|
--- elfutils-0.131/libelf/libelf.h 2007-11-11 20:29:00.000000000 +0100
|
||
|
+++ elfutils/libelf/libelf.h 2008-01-03 23:15:36.000000000 +0100
|
||
|
@@ -95,7 +95,7 @@
|
||
|
Elf_Type d_type; /* Type of this piece of data. */
|
||
|
unsigned int d_version; /* ELF version. */
|
||
|
size_t d_size; /* Size in bytes. */
|
||
|
- off64_t d_off; /* Offset into section. */
|
||
|
+ __off64_t d_off; /* Offset into section. */
|
||
|
size_t d_align; /* Alignment in section. */
|
||
|
} Elf_Data;
|
||
|
|
||
|
@@ -157,7 +157,7 @@
|
||
|
uid_t ar_uid; /* User ID. */
|
||
|
gid_t ar_gid; /* Group ID. */
|
||
|
mode_t ar_mode; /* File mode. */
|
||
|
- off64_t ar_size; /* File size. */
|
||
|
+ __off64_t ar_size; /* File size. */
|
||
|
char *ar_rawname; /* Original name of archive member. */
|
||
|
} Elf_Arhdr;
|
||
|
|
||
|
@@ -198,13 +198,13 @@
|
||
|
extern int elf_end (Elf *__elf);
|
||
|
|
||
|
/* Update ELF descriptor and write file to disk. */
|
||
|
-extern off64_t elf_update (Elf *__elf, Elf_Cmd __cmd);
|
||
|
+extern __off64_t elf_update (Elf *__elf, Elf_Cmd __cmd);
|
||
|
|
||
|
/* Determine what kind of file is associated with ELF. */
|
||
|
extern Elf_Kind elf_kind (Elf *__elf) __attribute__ ((__pure__));
|
||
|
|
||
|
/* Get the base offset for an object file. */
|
||
|
-extern off64_t elf_getbase (Elf *__elf);
|
||
|
+extern __off64_t elf_getbase (Elf *__elf);
|
||
|
|
||
|
|
||
|
/* Retrieve file identification data. */
|
||
|
@@ -302,7 +302,7 @@
|
||
|
would be for TYPE. The resulting Elf_Data pointer is valid until
|
||
|
elf_end (ELF) is called. */
|
||
|
extern Elf_Data *elf_getdata_rawchunk (Elf *__elf,
|
||
|
- off64_t __offset, size_t __size,
|
||
|
+ __off64_t __offset, size_t __size,
|
||
|
Elf_Type __type);
|
||
|
|
||
|
|
||
|
@@ -314,7 +314,7 @@
|
||
|
extern Elf_Arhdr *elf_getarhdr (Elf *__elf);
|
||
|
|
||
|
/* Return offset in archive for current file ELF. */
|
||
|
-extern off64_t elf_getaroff (Elf *__elf);
|
||
|
+extern __off64_t elf_getaroff (Elf *__elf);
|
||
|
|
||
|
/* Select archive element at OFFSET. */
|
||
|
extern size_t elf_rand (Elf *__elf, size_t __offset);
|