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

Include <fcntl.h> instead of <sys/fcntl.h> #198

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

marv
Copy link
Contributor

@marv marv commented Oct 20, 2023

Fixes the following warnings when building on systems using the musl libc:

In file included from sysfs.c:4:
/usr/riscv64-unknown-linux-musl/include/sys/fcntl.h:1:2: warning: redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-W#warnings]
    1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
      |  ^
1 warning generated.

On systems using glibc this is also just a wrapper:

$ cat /usr/include/sys/fcntl.h

Fixes the following warnings when building on systems using the musl libc:
```
In file included from sysfs.c:4:
/usr/riscv64-unknown-linux-musl/include/sys/fcntl.h:1:2: warning: redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-W#warnings]
    1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
      |  ^
1 warning generated.
```

On systems using glibc this is also just a wrapper:

> $ cat /usr/include/sys/fcntl.h
> #include <fcntl.h>

Signed-off-by: Marvin Schmidt <marv@exherbo.org>
@andikleen andikleen merged commit 4dfbd3f into numactl:master Jan 6, 2024
@andikleen
Copy link
Contributor

Thanks!

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.

None yet

3 participants