mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 17:04:32 +04:00
eoip: fix compilation with gcc14
Wrong pointer and missing header. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=eoip
|
PKG_NAME:=eoip
|
||||||
PKG_VERSION:=0.5
|
PKG_VERSION:=0.5
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_MAINTAINER:=Bogdan Shatik <bogdikxxx@mail.ru>
|
PKG_MAINTAINER:=Bogdan Shatik <bogdikxxx@mail.ru>
|
||||||
PKG_LICENSE:=GPL-3.0-or-later
|
PKG_LICENSE:=GPL-3.0-or-later
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
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
|
--- a/eoip.c
|
||||||
+++ b/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);
|
exit(1);
|
||||||
|
|
||||||
mfd = fopen(pidfile, "w");
|
mfd = fopen(pidfile, "w");
|
||||||
|
|||||||
Reference in New Issue
Block a user