# HG changeset patch # User reimar # Date 1280393084 0 # Node ID 971b1ce234cd56d5df7502717a538c956fdfa297 # Parent 036d59b53de25eaff461ae265f48896f61866700 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). diff -r 036d59b53de2 -r 971b1ce234cd configure --- a/configure Wed Jul 28 10:43:02 2010 +0000 +++ b/configure Thu Jul 29 08:44:44 2010 +0000 @@ -3763,7 +3763,14 @@ 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 +#include +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