Skip to content
New issue

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

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

Already on GitHub? # to your account

add missing <unistd.h> #199

Merged
merged 1 commit into from
Nov 27, 2024
Merged

add missing <unistd.h> #199

merged 1 commit into from
Nov 27, 2024

Conversation

Xeonacid
Copy link
Contributor

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
```
@Kyle-Kyle Kyle-Kyle merged commit 16a5bde into shellphish:master Nov 27, 2024
12 checks passed
@Kyle-Kyle
Copy link
Contributor

thanks for the contribution!

@Xeonacid Xeonacid deleted the unistd branch November 27, 2024 11:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants