openexr: make architecture independent
[oi-userland.git] / components / library / libdnet / patches / 03-eth-dlpi.c.patch
blobd3ff9908b9303bbe64f7a70511d859475e4a2104
1 Fix Bug 23595729 dnet can't send out packet.
3 --- libdnet-libdnet-1.14/src/eth-dlpi.c.orig 2020-07-17 18:56:28.000000000 +0000
4 +++ libdnet-libdnet-1.14/src/eth-dlpi.c 2021-09-12 15:18:14.525536772 +0000
5 @@ -151,7 +151,7 @@
7 #else
8 e->fd = -1;
9 - snprintf(dev, sizeof(dev), "/dev/%s", device);
10 + snprintf(dev, sizeof(dev), "/dev/net/%s", device);
11 if ((p = dev_find_ppa(dev)) == NULL) {
12 errno = EINVAL;
13 return (eth_close(e));
14 @@ -160,7 +160,7 @@
15 *p = '\0';
17 if ((e->fd = open(dev, O_RDWR)) < 0) {
18 - snprintf(dev, sizeof(dev), "/dev/%s", device);
19 + snprintf(dev, sizeof(dev), "/dev/net/%s", device);
20 if ((e->fd = open(dev, O_RDWR)) < 0)
21 return (eth_close(e));