19 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
20 |
*/ |
*/ |
21 |
|
|
22 |
|
/* |
23 |
|
This is a workaround for Esound bug 312665. |
24 |
|
FIXME: Remove this when Esound is fixed. |
25 |
|
*/ |
26 |
|
#ifdef _FILE_OFFSET_BITS |
27 |
|
#undef _FILE_OFFSET_BITS |
28 |
|
#endif |
29 |
|
|
30 |
#include "rdesktop.h" |
#include "rdesktop.h" |
31 |
#include <unistd.h> |
#include <unistd.h> |
32 |
#include <fcntl.h> |
#include <fcntl.h> |
58 |
|
|
59 |
if (dsp_dev == NULL) |
if (dsp_dev == NULL) |
60 |
{ |
{ |
61 |
dsp_dev = strdup("/dev/dsp"); |
dsp_dev = xstrdup("/dev/dsp"); |
62 |
} |
} |
63 |
|
|
64 |
if ((g_dsp_fd = open(dsp_dev, O_WRONLY | O_NONBLOCK)) == -1) |
if ((g_dsp_fd = open(dsp_dev, O_WRONLY | O_NONBLOCK)) == -1) |