Build fixes for NetBSD from pkgsrc (#9886)
This commit is contained in:
@@ -118,8 +118,9 @@
|
||||
#include <Carbon/Carbon.h>
|
||||
#endif
|
||||
|
||||
#ifdef VST3_SUPPORT
|
||||
#include "ardour/system_exec.h"
|
||||
|
||||
#ifdef VST3_SUPPORT
|
||||
#include "ardour/vst3_module.h"
|
||||
#include "ardour/vst3_plugin.h"
|
||||
#include "ardour/vst3_scan.h"
|
||||
|
||||
@@ -119,9 +119,10 @@ ARDOUR::get_jack_audio_driver_names (vector<string>& audio_driver_names)
|
||||
#ifdef HAVE_ALSA
|
||||
audio_driver_names.push_back (alsa_driver_name);
|
||||
#endif
|
||||
audio_driver_names.push_back (oss_driver_name);
|
||||
#if defined(__NetBSD__) || defined(__sun)
|
||||
#if defined(__NetBSD__)
|
||||
audio_driver_names.push_back (sun_driver_name);
|
||||
#else
|
||||
audio_driver_names.push_back (oss_driver_name);
|
||||
#endif
|
||||
audio_driver_names.push_back (freebob_driver_name);
|
||||
audio_driver_names.push_back (ffado_driver_name);
|
||||
@@ -506,7 +507,7 @@ bool
|
||||
ARDOUR::get_jack_audio_driver_supports_setting_period_count (const string& driver)
|
||||
{
|
||||
return !(driver == dummy_driver_name || driver == coreaudio_driver_name ||
|
||||
driver == portaudio_driver_name);
|
||||
driver == portaudio_driver_name || driver == sun_driver_name);
|
||||
}
|
||||
|
||||
bool
|
||||
@@ -687,7 +688,7 @@ ARDOUR::get_jack_command_line_string (JackCommandLineOptions& options, string& c
|
||||
|
||||
args.push_back (options.server_path);
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#if defined(PLATFORM_WINDOWS) || defined(__NetBSD__) || defined(__sun)
|
||||
// must use sync mode on windows
|
||||
args.push_back ("-S");
|
||||
#endif
|
||||
@@ -717,6 +718,7 @@ ARDOUR::get_jack_command_line_string (JackCommandLineOptions& options, string& c
|
||||
args.push_back ("-p");
|
||||
args.push_back (to_string(options.ports_max));
|
||||
|
||||
#ifndef __NetBSD__
|
||||
if (options.realtime) {
|
||||
args.push_back ("-R");
|
||||
if (options.priority != 0) {
|
||||
@@ -726,6 +728,9 @@ ARDOUR::get_jack_command_line_string (JackCommandLineOptions& options, string& c
|
||||
} else {
|
||||
args.push_back ("-r");
|
||||
}
|
||||
#else
|
||||
args.push_back ("-r");
|
||||
#endif
|
||||
|
||||
if (options.unlock_gui_libs) {
|
||||
args.push_back ("-u");
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#ifdef __linux__
|
||||
#include <unistd.h>
|
||||
#elif defined(__APPLE__) || defined(__FreeBSD__)
|
||||
#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#include <stddef.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#define HAVE_GETRESUID 1
|
||||
#endif
|
||||
|
||||
#ifndef __APPLE__
|
||||
#if !defined(__APPLE__) && !defined(__NetBSD__)
|
||||
/* Have GNU ftw */
|
||||
#define HAVE_GNU_FTW 1
|
||||
#endif
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `getresuid' function. */
|
||||
#if !(defined PLATFORM_WINDOWS || defined __APPLE__)
|
||||
#if !(defined PLATFORM_WINDOWS || defined __APPLE__ || defined(__NetBSD__))
|
||||
#define HAVE_GETRESUID 1
|
||||
#endif
|
||||
|
||||
#ifndef __APPLE__
|
||||
#if !defined(__APPLE__) && !defined(__NetBSD__)
|
||||
/* Have GNU ftw */
|
||||
#define HAVE_GNU_FTW 1
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user