Hello,

It's been a while since I built Fluidsynth on Solaris, it worked well enough, except for a little snag: there is a part where a portion of the code is Linux/MacOS only, but one function defined there is used in a later block that's common to all systems: translate_error().

I've made a very simple patch that works around it, to not use that bit if the block above has been avoided, please see attached.

Thanks,

Laurent
--- a/src/bindings/fluid_rtkit.c.original	Thu Aug 16 06:01:13 2012
+++ b/src/bindings/fluid_rtkit.c	Mon May 27 17:45:27 2013
@@ -34,7 +34,7 @@
 #include "fluid_rtkit.h"
 
 
-#if defined(__linux__) || defined(__APPLE__)
+#if defined(__linux__) || defined(__APPLE__) 
 
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
@@ -47,7 +47,6 @@
 #include <sys/syscall.h>
 #include <sys/resource.h>
 
-
 static pid_t _gettid(void) {
         return (pid_t) syscall(SYS_gettid);
 }
@@ -342,7 +341,9 @@
 	dbus_error_init(&error);
 	conn = dbus_bus_get_private(DBUS_BUS_SYSTEM, &error);
 	if (conn == NULL) {
+#if defined(__linux__) || defined(__APPLE__) 
 		res = translate_error(error.name);
+#endif
         	dbus_error_free(&error);
 		return res;
 	}
_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to