diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2024-01-10 16:24:01 +0100 |
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2024-04-26 17:11:53 +0200 |
| commit | 57b9ecf3f96c0e87f3f759c067601731dcfaf5b8 (patch) | |
| tree | 4a0dd0dc0caabbea7db9e0054c64ab9e2bad7c04 /python/xref2vtysh.py | |
| parent | 6a7fadaecc5367dcf05694da5dcfc226d5cfec09 (diff) | |
build: include our own copy of if.h and dependencies
Import our a copy of Linux if.h and its dependencies
(compiler_types.h and libc-compat.h) from the above links. In "if.h",
"#include <linux/compiler.h>" has been replaced by
"#include <linux/compiler_types.h>". libc-compat.h is needed to avoid
conflicts with glibc.
Include "linux/if.h" in "zebra.h" when compiling on Linux. De-reference
"net/if.h" in C files.
Note that "net/if.h" is still needed. It is even included in many Linux
kernel files. "linux/if.h" provides additional definitions.
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/include/uapi/linux/if.h?h=v5.5
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/include/uapi/linux/libc-compat.h?h=v5.5
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/include/linux/compiler_types.h?h=v5.5
Link: https://patchwork.ozlabs.org/project/glibc/patch/1461512707-23058-1-git-send-email-mikko.rapeli@iki.fi/
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'python/xref2vtysh.py')
0 files changed, 0 insertions, 0 deletions
