aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2012-07-10 22:16:25 -0400
committerGlenn Morris2012-07-10 22:16:25 -0400
commit20e94fdd8ec2a82d0789fc4ea354a803a14e2ec3 (patch)
tree89b52e6a6de6917b811d85215bcf12add8a436dd /src
parent22ffb97351d1081558c070a3c134d2be99993df6 (diff)
downloademacs-20e94fdd8ec2a82d0789fc4ea354a803a14e2ec3.tar.gz
emacs-20e94fdd8ec2a82d0789fc4ea354a803a14e2ec3.zip
Let configure set DEFAULT_SOUND_DEVICE
* configure.ac (DEFAULT_SOUND_DEVICE): New definition. * src/sound.c (DEFAULT_SOUND_DEVICE) [!WINDOWSNT]: * src/s/netbsd.h (DEFAULT_SOUND_DEVICE): Let configure set it.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/s/netbsd.h2
-rw-r--r--src/sound.c12
3 files changed, 9 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0c98c0b356d..be42db2468a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12012-07-11 Glenn Morris <rgm@gnu.org>
2
3 * sound.c (DEFAULT_SOUND_DEVICE) [!WINDOWSNT]:
4 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Let configure set it.
5
12012-07-10 Paul Eggert <eggert@cs.ucla.edu> 62012-07-10 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Remove "#define unix" that is no longer needed (Bug#11905). 8 Remove "#define unix" that is no longer needed (Bug#11905).
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index 23e72541920..80b4442af56 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -21,8 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
21/* Get most of the stuff from bsd-common. */ 21/* Get most of the stuff from bsd-common. */
22#include "bsd-common.h" 22#include "bsd-common.h"
23 23
24#define DEFAULT_SOUND_DEVICE "/dev/audio"
25
26/* Greg A. Woods <woods@weird.com> says we must include signal.h 24/* Greg A. Woods <woods@weird.com> says we must include signal.h
27 before syssignal.h is included, to work around interface conflicts 25 before syssignal.h is included, to work around interface conflicts
28 that are handled with CPP __RENAME() macro in signal.h. */ 26 that are handled with CPP __RENAME() macro in signal.h. */
diff --git a/src/sound.c b/src/sound.c
index adeb3c47f0f..3773047827b 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -1,5 +1,6 @@
1/* sound.c -- sound support. 1/* sound.c -- sound support.
2 Copyright (C) 1998-1999, 2001-2012 Free Software Foundation, Inc. 2
3Copyright (C) 1998-1999, 2001-2012 Free Software Foundation, Inc.
3 4
4This file is part of GNU Emacs. 5This file is part of GNU Emacs.
5 6
@@ -114,11 +115,6 @@ enum sound_attr
114/* BEGIN: Non Windows Definitions */ 115/* BEGIN: Non Windows Definitions */
115#ifndef WINDOWSNT 116#ifndef WINDOWSNT
116 117
117#ifndef DEFAULT_SOUND_DEVICE
118#define DEFAULT_SOUND_DEVICE "/dev/dsp"
119#endif
120
121
122/* Structure forward declarations. */ 118/* Structure forward declarations. */
123 119
124struct sound; 120struct sound;
@@ -714,7 +710,7 @@ vox_open (struct sound_device *sd)
714{ 710{
715 const char *file; 711 const char *file;
716 712
717 /* Open the sound device. Default is /dev/dsp. */ 713 /* Open the sound device (eg /dev/dsp). */
718 if (sd->file) 714 if (sd->file)
719 file = sd->file; 715 file = sd->file;
720 else 716 else
@@ -860,7 +856,7 @@ vox_init (struct sound_device *sd)
860 const char *file; 856 const char *file;
861 int fd; 857 int fd;
862 858
863 /* Open the sound device. Default is /dev/dsp. */ 859 /* Open the sound device (eg /dev/dsp). */
864 if (sd->file) 860 if (sd->file)
865 file = sd->file; 861 file = sd->file;
866 else 862 else