You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/isapnptools/files/isapnptools-1.26-gcc.patch

42 lines
907 B

http://bugs.gentoo.org/117333
--- isapnptools/src/isapnp_main.l
+++ isapnptools/src/isapnp_main.l
@@ -363,7 +363,6 @@
return 0;
}
-static unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN];
static char *boardid[NUM_CARDS+1];
static unsigned long serno[NUM_CARDS+1];
--- isapnptools/src/callbacks.c
+++ isapnptools/src/callbacks.c
@@ -49,6 +49,7 @@
#include <isapnp/callbacks.h>
#endif
#include <stdio.h>
+#include <stdlib.h>
#include <errno.h>
#include <string.h>
--- isapnptools/src/resource.c
+++ isapnptools/src/resource.c
@@ -12,6 +12,7 @@
alloc_in_range_list() reordered to handle source name by P.Fox
*/
+#define _GNU_SOURCE
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -285,7 +286,7 @@
void allocate_pci_resources( void )
{
char *line = 0;
- int lineMax = 0;
+ size_t lineMax = 0;
FILE *fp = fopen( "/proc/bus/pci/devices", "rt" );
if( !fp )