mirror of
https://git.freebsd.org/ports.git
synced 2025-07-14 15:59:18 -04:00
Rename them to follow the make makepatch naming, and regenerate them. With hat: portmgr Sponsored by: Absolight
17 lines
627 B
C
17 lines
627 B
C
--- src/modules/oss/module-oss.c.orig 2015-09-10 04:51:41 UTC
|
|
+++ src/modules/oss/module-oss.c
|
|
@@ -1227,10 +1227,14 @@ int pa__init(pa_module*m) {
|
|
use_mmap = false;
|
|
}
|
|
|
|
+#ifndef __FreeBSD__
|
|
+/* Disable mmap. The OSS on FreeBSD doesn't support read & write on
|
|
+ the same socket */
|
|
if (use_mmap && mode == O_WRONLY) {
|
|
pa_log_info("Device opened for playback only, cannot do memory mapping, falling back to UNIX write() mode.");
|
|
use_mmap = false;
|
|
}
|
|
+#endif
|
|
|
|
if (pa_oss_get_hw_description(dev, hwdesc, sizeof(hwdesc)) >= 0)
|
|
pa_log_info("Hardware name is '%s'.", hwdesc);
|