blob: e94a529d37db58b895cdeb70e955449c1e63c6c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Index: mapper/src/Mapper_OSS.c
@@ -964,6 +964,13 @@
BEGIN("Mapper_ReadEvent");
+#ifdef __FreeBSD__
+ /* on FreeBSD the read() will block when there is no data available... */
+ out = 0;
+ ioctl(seqfd, SNDCTL_SEQ_GETINCOUNT, &out);
+ if (!out)
+ RETURN_BOOL(False);
+#endif
if ( ( out = read(seqfd, &InBytes, sizeof(InBytes)) ) <= 0 )
RETURN_BOOL(False);
|