Opened 16 years ago
Closed 16 years ago
#8335 closed defect (fixed)
basename - mythcommandlineparser.cpp build failure on Mac
| Reported by: | Owned by: | Nigel | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | Ports - OSX | Version: | Master Head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
On the mac, we need to #include <libgen.h> when using |basename|. See:
http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man3/basename.3.html
Without this, we fail to compile here.
mythcommandlineparser.cpp: In member function ‘bool MythCommandLineParser::PreParse(int, const char* const*, int&, bool&)’: mythcommandlineparser.cpp:60: error: ‘basename’ was not declared in this scope make[2]: *** [mythcommandlineparser.o] Error 1
I added the #include directly in this file, but there is probably a better place for it.
Attachments (1)
Change History (3)
by , 16 years ago
| Attachment: | mythcommandlineparse_osx.diff added |
|---|
comment:1 by , 16 years ago
| Status: | new → infoneeded_new |
|---|
Note:
See TracTickets
for help on using tickets.

Add include required for OS X