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

Fix for GCC14 #104

Open
wants to merge 3 commits into
base: vita
Choose a base branch
from
Open

Fix for GCC14 #104

wants to merge 3 commits into from

Conversation

gordon0001
Copy link

GCC14 errors about some functions not explicitly included like close in pipe.c and socket.c
dirent.c didn't like <sys/dirent.h> but <dirent.h> is ok and it compiles.
"sys/dirent.h" should also work

This shouldn't break compilation on GCC lower than 14

GCC14 wants unistd.h included for the function "close" otherwise the compiler will give you an error:

Implicit declaration of function 'close' is invalid in C99
GCC14 wants unistd.h included for the function "close" otherwise the compiler will give you an error:

Implicit declaration of function 'close' is invalid in C99
GCC14 wants dirent.h included for the function "readdir", "opendir", "closedir" otherwise the compiler will give you the following errors::

1) implicit declaration of function 'opendir'
2) implicit declaration of function 'readdir'
3) implicit declaration of function 'closedir'
4) initialization of 'DIR *' {aka 'struct DIR_ *'} from 'int' makes pointer from integer without a cast 
5) assignment to 'struct dirent *' from 'int' makes pointer from integer without a cast
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