summaryrefslogtreecommitdiff
path: root/emulators/qemu2/files/patch-include_net_net.h
blob: bdc08cb276e695cfebce7cd029134a6150a89c39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- include/net/net.h.orig	2018-08-02 21:48:53 UTC
+++ include/net/net.h
@@ -217,8 +217,8 @@ void qmp_netdev_add(QDict *qdict, QObject **ret, Error
 int net_hub_id_for_client(NetClientState *nc, int *id);
 NetClientState *net_hub_port_find(int hub_id);
 
-#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
-#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
+#define DEFAULT_NETWORK_SCRIPT PREFIX "/etc/qemu-ifup"
+#define DEFAULT_NETWORK_DOWN_SCRIPT PREFIX "/etc/qemu-ifdown"
 #define DEFAULT_BRIDGE_HELPER CONFIG_QEMU_HELPERDIR "/qemu-bridge-helper"
 #define DEFAULT_BRIDGE_INTERFACE "br0"