Author: reimar Date: Thu Jul 29 10:44:44 2010 New Revision: 31855 Log: Make the sys/cdio.h header test work by explictly including sys/types.h before. Broken headers are a Solaris and BSD tradition, hoping for them to get their act together is hopeless, so we work around it (for now at least). Modified: trunk/configure Modified: trunk/configure ============================================================================== --- trunk/configure Thu Jul 29 02:56:14 2010 (r31854) +++ trunk/configure Thu Jul 29 10:44:44 2010 (r31855) @@ -3763,7 +3763,14 @@ echores "$_dvdio" echocheck "sys/cdio.h" _cdio=no -header_check sys/cdio.h && _cdio=yes +cat > $TMPC << EOF +// types.h needed to workaround broken headers +// on e.g. OpenSolaris +#include <sys/types.h> +#include <sys/cdio.h> +int main(void) { return 0; } +EOF +compile_check $TMPC && _cdio=yes if test "$_cdio" = yes ; then def_cdio='#define DVD_STRUCT_IN_SYS_CDIO_H 1' else
participants (1)
-
reimar