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

htc.c and hts.c missing include of <time.h> for definition of time(...) #25

Open
pjfordham opened this issue Jan 12, 2023 · 1 comment

Comments

@pjfordham
Copy link

Found as part of this effort:
https://fedoraproject.org/wiki/Toolchain/PortingToModernC

When compiling with strict C99 compliance we see that both htc.c and hts.c use time without the correct header being included

hts.c:433: implicit function declaration: time

There does seem to be some confusion on the web about whether sys/time.h should have this and it seems to vary on a per platform basis so simply including time.h might not be the right solution. So more elaborate configure magic might be required.

@larsbrinkhoff
Copy link
Owner

The files htc.c and htc.s include both time.h and sys/time.h. @pjfordham, please clarify.

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

No branches or pull requests

2 participants