mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-17 12:53:54 +02:00
eoip: fix compilation with gcc14
Wrong pointer and missing header. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
289bc496ff
commit
539858ad75
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=eoip
|
||||
PKG_VERSION:=0.5
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
PKG_MAINTAINER:=Bogdan Shatik <bogdikxxx@mail.ru>
|
||||
PKG_LICENSE:=GPL-3.0-or-later
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
|
|
19
net/eoip/patches/010-gcc14.patch
Normal file
19
net/eoip/patches/010-gcc14.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- a/eoip.c
|
||||
+++ b/eoip.c
|
||||
@@ -44,6 +44,7 @@
|
||||
#include <signal.h>
|
||||
#include <assert.h>
|
||||
#include <pthread.h>
|
||||
+#include <libgen.h>
|
||||
#include <limits.h>
|
||||
#include <asm/byteorder.h>
|
||||
#include "minIni.h"
|
||||
@@ -205,7 +206,7 @@ static void *thr_rx(void *threadid)
|
||||
ret = select(raw_socket+1, &rfds, NULL, NULL, NULL);
|
||||
assert(rxringbufused == 0);
|
||||
while (rxringbufused < MAXRINGBUF) {
|
||||
- rxringpayload[rxringbufused] = recvfrom(raw_socket, rxringbufptr[rxringbufused], MAXPAYLOAD, 0, &saddr[rxringbufused], &saddr_size);
|
||||
+ rxringpayload[rxringbufused] = recvfrom(raw_socket, rxringbufptr[rxringbufused], MAXPAYLOAD, 0, (struct sockaddr *)&saddr[rxringbufused], &saddr_size);
|
||||
if (rxringpayload[rxringbufused] < 0)
|
||||
break;
|
||||
if (rxringpayload[rxringbufused] >= 28)
|
|
@ -1,6 +1,6 @@
|
|||
--- a/eoip.c
|
||||
+++ b/eoip.c
|
||||
@@ -430,7 +430,7 @@ int main(int argc, char **argv)
|
||||
@@ -431,7 +431,7 @@ int main(int argc, char **argv)
|
||||
exit(1);
|
||||
|
||||
mfd = fopen(pidfile, "w");
|
||||
|
|
Loading…
Reference in New Issue
Block a user