freebsd-ports/x11-wm/epplets/files/patch-epplets_E-SD.c
Pietro Cerutti f4a53373b7 - Update to 0.10
- Port most epplets to FreeBSD
- Exclude Mountbox from the build (too much Linux-dependent)
- Exclude Xss from the build (what is it really good for?)

Approved by:	miwi (mentor)
2008-03-10 20:41:57 +00:00

14 lines
454 B
C

--- epplets/E-SD.c.orig 2008-01-11 09:53:52.000000000 +0100
+++ epplets/E-SD.c 2008-01-11 09:56:10.000000000 +0100
@@ -586,6 +586,11 @@
esd_monitor_stream(ESD_BITS16 | ESD_STEREO | ESD_STREAM | ESD_PLAY,
RATE, NULL, "E-SD");
+ if(esd.fd < 0) {
+ printf("ERROR: Couldn't open EsounD monitor stream!\n");
+ exit(EXIT_FAILURE);
+ }
+
fcntl(esd.fd, F_SETFL, O_NONBLOCK);
if (esd_get_standby_mode(esd.fd) == ESM_RUNNING)