aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2012-05-09 22:00:53 -0700
committerPaul Eggert2012-05-09 22:00:53 -0700
commit12959e8ec2d9a3d075f1e752be96d45817a9289d (patch)
tree5ca91af695c229869ce44d7fe0a990a2ce7d9797
parentff57c2ec02157a5fa209a5626d2b79405d1f40d7 (diff)
downloademacs-12959e8ec2d9a3d075f1e752be96d45817a9289d.tar.gz
emacs-12959e8ec2d9a3d075f1e752be96d45817a9289d.zip
* sound.c (DEFAULT_ALSA_SOUND_DEVICE): Define only if HAVE_ALSA.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/sound.c7
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d4e38f5271c..f5b18b8d13a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12012-05-10 Paul Eggert <eggert@cs.ucla.edu>
2
3 * sound.c (DEFAULT_ALSA_SOUND_DEVICE): Define only if HAVE_ALSA.
4
12012-05-10 Dave Abrahams <dave@boostpro.com> 52012-05-10 Dave Abrahams <dave@boostpro.com>
2 6
3 * filelock.c (syms_of_filelock): New boolean create-lockfiles. 7 * filelock.c (syms_of_filelock): New boolean create-lockfiles.
diff --git a/src/sound.c b/src/sound.c
index 5fd5bd5c0de..9b58c01453a 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -124,9 +124,6 @@ static int parse_sound (Lisp_Object, Lisp_Object *);
124#ifndef DEFAULT_SOUND_DEVICE 124#ifndef DEFAULT_SOUND_DEVICE
125#define DEFAULT_SOUND_DEVICE "/dev/dsp" 125#define DEFAULT_SOUND_DEVICE "/dev/dsp"
126#endif 126#endif
127#ifndef DEFAULT_ALSA_SOUND_DEVICE
128#define DEFAULT_ALSA_SOUND_DEVICE "default"
129#endif
130 127
131 128
132/* Structure forward declarations. */ 129/* Structure forward declarations. */
@@ -908,6 +905,10 @@ vox_write (struct sound_device *sd, const char *buffer, EMACS_INT nbytes)
908 905
909/* This driver is available on GNU/Linux. */ 906/* This driver is available on GNU/Linux. */
910 907
908#ifndef DEFAULT_ALSA_SOUND_DEVICE
909#define DEFAULT_ALSA_SOUND_DEVICE "default"
910#endif
911
911static void 912static void
912alsa_sound_perror (const char *msg, int err) 913alsa_sound_perror (const char *msg, int err)
913{ 914{