Bug 104674

Summary: #include <ctime> is missing in poppler/Form.h
Product: poppler Reporter: Mojca Miklavec <mojca>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: medium CC: oliver.sander
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:
Attachments: The trivial patch

Description Mojca Miklavec 2018-01-17 12:49:43 UTC
Poppler fails to compile on FreeBSD due to a missing <ctime> header:

error: unknown type name 'time_t'

Can you please add "#include <ctime>" to poppler/Form.h?

See http://www.cplusplus.com/reference/ctime/time_t/
Comment 1 oliver.sander 2018-01-17 19:34:05 UTC
Created attachment 136812 [details] [review]
The trivial patch
Comment 2 Albert Astals Cid 2018-01-17 21:34:13 UTC
used time.h
Comment 3 Mojca Miklavec 2018-01-18 07:33:56 UTC
While it's ok to use "time.h", this is usually done in C. For C++ (and given the fact that the header includes <vector>, it cannot be used in C anyway) it's nicer to use <ctime>.

Anyway, the current patch should work as well, thank you very much.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.