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

Including both sys/prctl.h and linux/prctl.h fails on linux due to duplicate struct prctl_mm_map #1763

Open
TimEvens opened this issue Oct 17, 2024 · 1 comment

Comments

@TimEvens
Copy link

#include <linux/prctl.h> /* Definition of PR_* constants */

struct prctl_mm_map is defined in both linux/prctl.h and sys/prctl.h. This breaks builds due to the duplicate. It appears only one needs to be included. Suggest the below fix...

#ifndef __APPLE__
#ifdef __LINUX__
#include <linux/prctl.h>  /* Definition of PR_* constants */
#else
#include <sys/prctl.h>
#endif
#endif
@huitema
Copy link
Collaborator

huitema commented Oct 23, 2024

@TimEvens Thanks for the report. I pushed your suggested changes in PR #1768.

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

No branches or pull requests

2 participants