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

add missing <unistd.h> #199

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Xeonacid
Copy link

Fixes compile error with gcc 14:

glibc_2.23/mmap_overlapping_chunks.c: In function ‘main’:
glibc_2.23/mmap_overlapping_chunks.c:142:9: error: implicit declaration of function ‘_exit’; did you mean ‘_Exit’? [-Wimplicit-function-declaration]
  142 |         _exit(0); // exit early just in case we corrupted some libraries
      |         ^~~~~
      |         _Exit

Fixes compile error with gcc 14:
```text
glibc_2.23/mmap_overlapping_chunks.c: In function ‘main’:
glibc_2.23/mmap_overlapping_chunks.c:142:9: error: implicit declaration of function ‘_exit’; did you mean ‘_Exit’? [-Wimplicit-function-declaration]
  142 |         _exit(0); // exit early just in case we corrupted some libraries
      |         ^~~~~
      |         _Exit
```
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.

1 participant