Opened 16 months ago
Last modified 9 months ago
#67809 assigned defect
tippecanoe @2.28.0: error: use of undeclared identifier 'errno'
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | sikmir (Nikolay Korotkiy) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | ||
Port: | tippecanoe |
Description
memfile.cpp:80:52: error: use of undeclared identifier 'errno' fprintf(stderr, "fdopen memfile: %s\n", strerror(errno)); ^ memfile.cpp:85:51: error: use of undeclared identifier 'errno' fprintf(stderr, "memfile write: %s\n", strerror(errno)); ^ 2 errors generated. make: *** [memfile.o] Error 1
Change History (4)
comment:1 Changed 16 months ago by sikmir (Nikolay Korotkiy)
comment:2 Changed 16 months ago by jmroot (Joshua Root)
Needs to #include <cerrno>
. It's not unusual that forgetting to include a header will not result in an error on some OS versions, because some other header that is included happens to internally include the forgotten one.
comment:3 Changed 16 months ago by jmroot (Joshua Root)
Note: See
TracTickets for help on using
tickets.
Can't reproduce with macOS 12.6.7 x86_64, Xcode 14.2.