adding vortexdiag-1.09 patch
This commit is contained in:
parent
55f3f31646
commit
f0e9fa9fc8
1 changed files with 22 additions and 0 deletions
22
vortexdiag/vortexdiag-1.09.patch
Normal file
22
vortexdiag/vortexdiag-1.09.patch
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
diff -uNr vortexdiag-1.09/vortex-diag.c vortexdiag-1.09-fixed/vortex-diag.c
|
||||
--- vortexdiag-1.09/vortex-diag.c Tue Aug 17 23:24:08 1999
|
||||
+++ vortexdiag-1.09-fixed/vortex-diag.c Tue Aug 17 23:51:57 1999
|
||||
@@ -39,6 +39,7 @@
|
||||
#include <getopt.h>
|
||||
#include <strings.h>
|
||||
#include <errno.h>
|
||||
+#include <string.h>
|
||||
#if defined(__linux__) && __GNU_LIBRARY__ == 1
|
||||
#include <asm/io.h> /* Newer libraries use <sys/io.h> instead. */
|
||||
#else
|
||||
@@ -46,8 +47,8 @@
|
||||
#endif
|
||||
|
||||
/* No libmii.h (yet) */
|
||||
-extern show_mii_details(int ioaddr, int phy_id);
|
||||
-extern monitor_mii(int ioaddr, int phy_id);
|
||||
+extern void show_mii_details(int ioaddr, int phy_id);
|
||||
+extern int monitor_mii(int ioaddr, int phy_id);
|
||||
/* No libflash.h */
|
||||
extern int flash_show(long addr_ioaddr, long data_ioaddr);
|
||||
extern int flash_dump(long addr_ioaddr, long data_ioaddr, char *filename);
|
||||
Reference in a new issue