Skip to content

Commit

Permalink
lib: Guard includes for linux/sockios.h for Linux
Browse files Browse the repository at this point in the history
```
build	29-Feb-2024 13:09:05	./include/linux/mroute.h:5:10: fatal error: linux/sockios.h: No such file or directory
build	29-Feb-2024 13:09:05	    5 | #include <linux/sockios.h>
build	29-Feb-2024 13:09:05	      |          ^~~~~~~~~~~~~~~~~
```

Signed-off-by: Donatas Abraitis <[email protected]>
  • Loading branch information
ton31337 committed Feb 29, 2024
1 parent 3883e8b commit 16d24c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/mroute.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#ifndef _UAPI__LINUX_MROUTE_H
#define _UAPI__LINUX_MROUTE_H

#ifdef GNU_LINUX
#include <linux/sockios.h>
#endif
#include <linux/types.h>
#include <netinet/in.h> /* For struct in_addr. */

Expand Down
2 changes: 2 additions & 0 deletions include/linux/mroute6.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

#include <linux/const.h>
#include <linux/types.h>
#ifdef GNU_LINUX
#include <linux/sockios.h>
#endif
#include <netinet/in.h> /* For struct sockaddr_in6. */

/*
Expand Down

0 comments on commit 16d24c7

Please sign in to comment.