changeset 31784:be181a23c432

Use header_check_broken to simplify cdio.h check.
author reimar
date Thu, 29 Jul 2010 09:15:32 +0000
parents 1d5af4fbd107
children d9cbfb5a8e9f
files configure
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Jul 29 09:12:33 2010 +0000
+++ b/configure	Thu Jul 29 09:15:32 2010 +0000
@@ -3777,14 +3777,8 @@
 
 echocheck "sys/cdio.h"
 _cdio=no
-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
+# at least OpenSolaris has a broken cdio.h
+header_check_broken sys/types.h sys/cdio.h && _cdio=yes
 if test "$_cdio" = yes ; then
   def_cdio='#define DVD_STRUCT_IN_SYS_CDIO_H 1'
 else