]> git.eshelyaron.com Git - emacs.git/commitdiff
Fixed problem with mmsystem.h during configure.
authorEli Zaretskii <eliz@gnu.org>
Sat, 30 Mar 2013 07:24:02 +0000 (10:24 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 30 Mar 2013 07:24:02 +0000 (10:24 +0300)
configure.ac

index e077fdc1d02768152e5ba2a8389578d36a035df5..5ed6aed23d54690900325aa0c653f9efcd32394e 100644 (file)
@@ -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 <windows.h>
+    #endif
+    ])
   # Emulation library used on NetBSD.
   AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=)
   AC_SUBST(LIBSOUND)