Cleanup for 42622 using struct stat instead boost
This commit is contained in:
@@ -25,8 +25,6 @@ if env['WITH_BF_JACK']:
|
|||||||
sources += env.Glob('jack/*.cpp')
|
sources += env.Glob('jack/*.cpp')
|
||||||
incs += ' jack ' + env['BF_JACK_INC']
|
incs += ' jack ' + env['BF_JACK_INC']
|
||||||
defs.append('WITH_JACK')
|
defs.append('WITH_JACK')
|
||||||
if env['OURPLATFORM'] == 'darwin':
|
|
||||||
incs += ' ' + env['BF_BOOST_INC']
|
|
||||||
|
|
||||||
if env['WITH_BF_SNDFILE']:
|
if env['WITH_BF_SNDFILE']:
|
||||||
sources += env.Glob('sndfile/*.cpp')
|
sources += env.Glob('sndfile/*.cpp')
|
||||||
|
@@ -78,9 +78,6 @@
|
|||||||
|
|
||||||
#ifdef WITH_JACK
|
#ifdef WITH_JACK
|
||||||
#include "AUD_JackDevice.h"
|
#include "AUD_JackDevice.h"
|
||||||
#ifdef __APPLE__
|
|
||||||
#include <boost/filesystem/operations.hpp>
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -141,8 +138,9 @@ int AUD_init(AUD_DeviceType device, AUD_DeviceSpecs specs, int buffersize)
|
|||||||
#ifdef WITH_JACK
|
#ifdef WITH_JACK
|
||||||
case AUD_JACK_DEVICE:
|
case AUD_JACK_DEVICE:
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
if (!boost::filesystem::exists("/Library/Frameworks/Jackmp.framework")){
|
struct stat st;
|
||||||
printf("Warning: Jack Framework not available\n");
|
if(stat("/Library/Frameworks/Jackmp.framework",&st) != 0){
|
||||||
|
printf("Warning: Jack Framework not installed\n");
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user