diff mbox series

adhoc: Fix compilation on old systems

Message ID 20231127032029.1316478-1-denkenz@gmail.com (mailing list archive)
State New
Headers show
Series adhoc: Fix compilation on old systems | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-alpine-ci-fetch success Fetch PR
prestwoj/iwd-ci-gitlint fail adhoc: Fix compilation on old systems 11: B1 Line exceeds max length (81>80): "/usr/include/linux/if.h:236:19: error: field ‘ifru_broadaddr’ has incomplete type"
prestwoj/iwd-ci-fetch success Fetch PR
prestwoj/iwd-ci-makedistcheck success Make Distcheck
prestwoj/iwd-ci-incremental_build success Incremental build not run PASS
prestwoj/iwd-ci-build success Build - Configure
prestwoj/iwd-alpine-ci-makedistcheck success Make Distcheck
prestwoj/iwd-alpine-ci-incremental_build success Incremental build not run PASS
prestwoj/iwd-alpine-ci-build success Build - Configure
prestwoj/iwd-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-ci-makecheck success Make Check
prestwoj/iwd-ci-clang success clang PASS
prestwoj/iwd-alpine-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-alpine-ci-makecheck success Make Check
prestwoj/iwd-ci-testrunner success test-runner PASS

Commit Message

Denis Kenzior Nov. 27, 2023, 3:19 a.m. UTC
CC       src/adhoc.o
In file included from src/adhoc.c:28:0:
/usr/include/linux/if.h:234:19: error: field ‘ifru_addr’ has incomplete type
   struct sockaddr ifru_addr;
                   ^
/usr/include/linux/if.h:235:19: error: field ‘ifru_dstaddr’ has incomplete type
   struct sockaddr ifru_dstaddr;
                   ^
/usr/include/linux/if.h:236:19: error: field ‘ifru_broadaddr’ has incomplete type
   struct sockaddr ifru_broadaddr;
                   ^
/usr/include/linux/if.h:237:19: error: field ‘ifru_netmask’ has incomplete type
   struct sockaddr ifru_netmask;
                   ^
/usr/include/linux/if.h:238:20: error: field ‘ifru_hwaddr’ has incomplete type
   struct  sockaddr ifru_hwaddr;
                    ^
---
 src/adhoc.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Marcel Holtmann Nov. 27, 2023, 10:30 a.m. UTC | #1
Hi Denis,

>  CC       src/adhoc.o
> In file included from src/adhoc.c:28:0:
> /usr/include/linux/if.h:234:19: error: field ‘ifru_addr’ has incomplete type
>   struct sockaddr ifru_addr;
>                   ^
> /usr/include/linux/if.h:235:19: error: field ‘ifru_dstaddr’ has incomplete type
>   struct sockaddr ifru_dstaddr;
>                   ^
> /usr/include/linux/if.h:236:19: error: field ‘ifru_broadaddr’ has incomplete type
>   struct sockaddr ifru_broadaddr;
>                   ^
> /usr/include/linux/if.h:237:19: error: field ‘ifru_netmask’ has incomplete type
>   struct sockaddr ifru_netmask;
>                   ^
> /usr/include/linux/if.h:238:20: error: field ‘ifru_hwaddr’ has incomplete type
>   struct  sockaddr ifru_hwaddr;
>                    ^
> ---
> src/adhoc.c | 1 +
> 1 file changed, 1 insertion(+)

patch has been applied.

Regards

Marcel
diff mbox series

Patch

diff --git a/src/adhoc.c b/src/adhoc.c
index 2b15f2bd4236..e787dab17ce4 100644
--- a/src/adhoc.c
+++ b/src/adhoc.c
@@ -25,6 +25,7 @@ 
 #endif
 
 #include <linux/rtnetlink.h>
+#include <sys/socket.h>
 #include <linux/if.h>
 
 #include <ell/ell.h>