[mythtv-commits] Ticket #8335: basename - mythcommandlineparser.cpp build failure on Mac

MythTV mythtv at cvs.mythtv.org
Mon Apr 12 04:46:24 UTC 2010


#8335: basename - mythcommandlineparser.cpp build failure on Mac
-----------------------------+----------------------------------------------
 Reporter:  dougt@…          |       Owner:  nigel     
     Type:  defect           |      Status:  new       
 Priority:  minor            |   Milestone:  unknown   
Component:  Ports - OSX      |     Version:  Trunk Head
 Severity:  medium           |     Mlocked:  0         
-----------------------------+----------------------------------------------
 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.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8335>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list