summaryrefslogtreecommitdiffstats
path: root/net/eoip/patches/010-gcc14.patch
blob: 8495a056bd1926bcb076f087230d9d79013a06d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)