Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libxdp: fix build on musl #309

Merged
merged 1 commit into from
Mar 29, 2023
Merged

libxdp: fix build on musl #309

merged 1 commit into from
Mar 29, 2023

Conversation

stintel
Copy link
Contributor

@stintel stintel commented Mar 29, 2023

In musl, PATH_MAX is defined in limits.h. Include it in libxdp.c to fix building systems using musl libc.

libxdp.c: In function 'find_bpffs':
libxdp.c:406:33: error: 'PATH_MAX' undeclared (first use in this function)
406 | static char bpf_wrk_dir[PATH_MAX];
| ^~~~~~~~

In musl, PATH_MAX is defined in limits.h. Include it in libxdp.c to fix
building systems using musl libc.

libxdp.c: In function 'find_bpffs':
libxdp.c:406:33: error: 'PATH_MAX' undeclared (first use in this function)
  406 |         static char bpf_wrk_dir[PATH_MAX];
      |                                 ^~~~~~~~

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
@tohojo
Copy link
Member

tohojo commented Mar 29, 2023

Thank you for the fix!

@tohojo tohojo merged commit a76e7a2 into xdp-project:master Mar 29, 2023
@stintel stintel deleted the musl branch March 29, 2023 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants