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

Flush 1998 vintage dirent.h and fcntl.h compatibility mess from system.h #1146

Merged
merged 2 commits into from Apr 2, 2020

Conversation

pmatilai
Copy link
Member

dirent.h and struct dirent are actually standard on this millenium, the
only thing that isn't is d_type member for which we have and retain
a specific test in configure.ac. Include <dirent.h> where needed,
relatively few places do which makes it even a bigger insult to have
this included from system.h.

@pmatilai
Copy link
Member Author

Added a missed dirent.h in fts.c (now there's another pile of ... to clean up)

@pmatilai pmatilai changed the title Flush 1998 vintage dirent.h compatibility mess from system.h Flush 1998 vintage dirent.h and fcntl.h compatibility mess from system.h Mar 30, 2020
dirent.h and struct dirent are actually standard on this millenium, the
only thing that isn't is d_type member for which we have and retain
a specific test in configure.ac. Include <dirent.h> where needed,
relatively few places do which makes it even a bigger insult to have
this included from system.h.
fcntl.h is standard, include it from places that need it and drop
from system.h.
@pmatilai
Copy link
Member Author

Added similar cleanup for fcntl.h, and rebased to fix conflict from the vfs-cleanup.

@soig
Copy link
Contributor

soig commented Mar 30, 2020

Looks good

@pmatilai pmatilai merged commit 8ed452d into rpm-software-management:master Apr 2, 2020
@pmatilai pmatilai deleted the dirent-pr branch April 3, 2020 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants