summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/eresi/files/0.82_beta2-drop-dprintf.patch')
-rw-r--r--dev-util/eresi/files/0.82_beta2-drop-dprintf.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-util/eresi/files/0.82_beta2-drop-dprintf.patch b/dev-util/eresi/files/0.82_beta2-drop-dprintf.patch
new file mode 100644
index 000000000..bde1a9500
--- /dev/null
+++ b/dev-util/eresi/files/0.82_beta2-drop-dprintf.patch
@@ -0,0 +1,25 @@
+Drop conflicting dprintf declaration.
+
+ERESI does declare a prototype for dprintf, which conflicts with the
+declaration in stdio.h, leading to the following compiler error:
+
+../librevm/include/revm.h:604: error: conflicting types for ‘dprintf’
+/usr/include/stdio.h:397: note: previous declaration of ‘dprintf’ was here
+
+As the whole ERESI source code doesn't even mention dprintf in any
+other place, dropping the declaration shouldn't cause any harm at all.
+
+2010-04-07 Martin von Gagern
+
+Index: eresi-0.82_beta2/librevm/include/revm.h
+===================================================================
+--- eresi-0.82_beta2.orig/librevm/include/revm.h
++++ eresi-0.82_beta2/librevm/include/revm.h
+@@ -601,7 +601,6 @@ int revm_isnbr(char *string);
+ void revm_workfiles_load();
+ int revm_implicit(revmcmd_t *actual);
+ int revm_workfiles_unload();
+-int dprintf(int fd, char *format, ...);
+ void revm_pht_print(elfsh_Phdr *phdr, uint16_t num, eresi_Addr base);
+ char *revm_fetch_sht_typedesc(elfsh_Word typenum);
+ int revm_sht_print(elfsh_Shdr *shdr, u_int num, char rtflag);