From: Eli Zaretskii Date: Sat, 30 Mar 2013 07:24:02 +0000 (+0300) Subject: Fixed problem with mmsystem.h during configure. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~229^2~63^2~63 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=803ee34370dec043cd5ff83cf485787b4ce7c285;p=emacs.git Fixed problem with mmsystem.h during configure. --- diff --git a/configure.ac b/configure.ac index e077fdc1d02..5ed6aed23d5 100644 --- a/configure.ac +++ b/configure.ac @@ -1160,7 +1160,12 @@ AC_DEFUN([PKG_CHECK_MODULES], [ if test "${with_sound}" != "no"; then # Sound support for GNU/Linux, the free BSDs, and MinGW. AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h soundcard.h mmsystem.h, - have_sound_header=yes) + have_sound_header=yes, [], [ + #ifdef __MINGW32__ + #define WIN32_LEAN_AND_MEAN + #include + #endif + ]) # Emulation library used on NetBSD. AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=) AC_SUBST(LIBSOUND)