Skip to content

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

@pjfordham

Description

@pjfordham

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions