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/net-misc/usbip/files/usbip-4.13-fno-common.patch

45 lines
1.0 KiB

--- a/libsrc/usbip_common.c
+++ b/libsrc/usbip_common.c
@@ -14,7 +14,7 @@
int usbip_use_stderr;
int usbip_use_debug;
-extern struct udev *udev_context;
+struct udev *udev_context;
struct speed_string {
int num;
--- alibsrc/usbip_common.h
+++ b/libsrc/usbip_common.h
@@ -53,6 +53,8 @@
#define ST_NODEV 0x04
#define ST_ERROR 0x05
+extern struct udev *udev_context;
+
extern int usbip_use_syslog;
extern int usbip_use_stderr;
extern int usbip_use_debug ;
--- a/libsrc/usbip_host_common.c
+++ b/libsrc/usbip_host_common.c
@@ -23,8 +23,6 @@
#include "list.h"
#include "sysfs_utils.h"
-struct udev *udev_context;
-
static int32_t read_attr_usbip_status(struct usbip_usb_device *udev)
{
char status_attr_path[SYSFS_PATH_MAX];
--- a/libsrc/vhci_driver.c
+++ b/libsrc/vhci_driver.c
@@ -15,7 +15,6 @@
#define PROGNAME "libusbip"
struct usbip_vhci_driver *vhci_driver;
-struct udev *udev_context;
static struct usbip_imported_device *
imported_device_init(struct usbip_imported_device *idev, char *busid)