Mercurial > mplayer.hg
comparison configure @ 31782:971b1ce234cd
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).
author | reimar |
---|---|
date | Thu, 29 Jul 2010 08:44:44 +0000 |
parents | 94ba361e1766 |
children | 1d5af4fbd107 |
comparison
equal
deleted
inserted
replaced
31781:036d59b53de2 | 31782:971b1ce234cd |
---|---|
3761 echores "$_dvdio" | 3761 echores "$_dvdio" |
3762 | 3762 |
3763 | 3763 |
3764 echocheck "sys/cdio.h" | 3764 echocheck "sys/cdio.h" |
3765 _cdio=no | 3765 _cdio=no |
3766 header_check sys/cdio.h && _cdio=yes | 3766 cat > $TMPC << EOF |
3767 // types.h needed to workaround broken headers | |
3768 // on e.g. OpenSolaris | |
3769 #include <sys/types.h> | |
3770 #include <sys/cdio.h> | |
3771 int main(void) { return 0; } | |
3772 EOF | |
3773 compile_check $TMPC && _cdio=yes | |
3767 if test "$_cdio" = yes ; then | 3774 if test "$_cdio" = yes ; then |
3768 def_cdio='#define DVD_STRUCT_IN_SYS_CDIO_H 1' | 3775 def_cdio='#define DVD_STRUCT_IN_SYS_CDIO_H 1' |
3769 else | 3776 else |
3770 def_cdio='#undef DVD_STRUCT_IN_SYS_CDIO_H' | 3777 def_cdio='#undef DVD_STRUCT_IN_SYS_CDIO_H' |
3771 fi | 3778 fi |