Permalink
Browse files

Modern alsa compilation fix by meep-eep

  • Loading branch information...
1 parent ed53885 commit f9ae1c29ae5889e71cc6f6f99bd8514c504e341d denis111 committed Dec 3, 2007
Showing with 6 additions and 6 deletions.
  1. +4 −4 configure.in
  2. +2 −2 drivers/drv_alsa.c
View
@@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script.
dnl
-dnl $Id: configure.in,v 1.3 2005/05/18 13:42:02 raphassenat Exp $
+dnl $Id: configure.in,v 1.4 2007/12/03 20:50:05 denis111 Exp $
AC_INIT(include/mikmod.h.in)
@@ -317,10 +317,10 @@ fi
if test "`uname`" = "Linux" && test $libmikmod_driver_alsa = yes
then
libmikmod_driver_alsa=no
- AC_CHECK_HEADERS(sys/asoundlib.h)
- if test $ac_cv_header_sys_asoundlib_h = yes
+ AC_CHECK_HEADERS(alsa/asoundlib.h)
+ if test $ac_cv_header_alsa_asoundlib_h = yes
then
- AC_CHECK_LIB(asound,snd_cards,libmikmod_driver_alsa=yes)
+ AC_CHECK_LIB(asound,snd_pcm_open,libmikmod_driver_alsa=yes)
fi
else
libmikmod_driver_alsa=no
View
@@ -20,7 +20,7 @@
/*==============================================================================
- $Id: drv_alsa.c,v 1.2 2005/03/30 19:09:11 realtech Exp $
+ $Id: drv_alsa.c,v 1.3 2007/12/03 20:50:22 denis111 Exp $
Driver for Advanced Linux Sound Architecture (ALSA)
@@ -47,7 +47,7 @@
#include <stdlib.h>
#include <string.h>
-#include <sys/asoundlib.h>
+#include <alsa/asoundlib.h>
#if defined(SND_LIB_VERSION) && (SND_LIB_VERSION >= 0x500)
#undef DRV_ALSA
#endif

0 comments on commit f9ae1c2

Please sign in to comment.