Mercurial > hg > xemacs-beta
comparison src/sunplay.c @ 398:74fd4e045ea6 r21-2-29
Import from CVS: tag r21-2-29
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:13:30 +0200 |
parents | 8626e4521993 |
children | b8cc9ab3f761 |
comparison
equal
deleted
inserted
replaced
397:f4aeb21a5bad | 398:74fd4e045ea6 |
---|---|
31 #include <sys/signal.h> | 31 #include <sys/signal.h> |
32 #endif | 32 #endif |
33 #include <sys/fcntl.h> | 33 #include <sys/fcntl.h> |
34 #include <sys/file.h> | 34 #include <sys/file.h> |
35 | 35 |
36 /* libaudio.h includes a header which defines CONST. We temporarily | |
37 undefine it in order to eliminate a compiler warning. Yes, this is | |
38 a gross hack. */ | |
39 #undef CONST | |
40 #include <multimedia/libaudio.h> | 36 #include <multimedia/libaudio.h> |
41 #include <multimedia/audio_device.h> | 37 #include <multimedia/audio_device.h> |
42 #undef CONST | |
43 #define CONST const | |
44 | 38 |
45 #ifdef emacs | 39 #ifdef emacs |
46 # include <config.h> | 40 # include <config.h> |
47 # include "lisp.h" | 41 # include "lisp.h" |
48 # include "sysdep.h" | 42 # include "sysdep.h" |
310 signal (SIGINT, sigint_handler); | 304 signal (SIGINT, sigint_handler); |
311 } | 305 } |
312 | 306 |
313 /* #### sigcontext doesn't exist in Solaris. This should be updated | 307 /* #### sigcontext doesn't exist in Solaris. This should be updated |
314 to be correct for Solaris. */ | 308 to be correct for Solaris. */ |
315 static void | 309 static SIGTYPE |
316 sighandler (int sig) | 310 sighandler (int sig) |
317 { | 311 { |
318 if (audio_fd > 0) | 312 if (audio_fd > 0) |
319 { | 313 { |
320 reset_device (0); | 314 reset_device (0); |