mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Move unistd.h detection to the correct wscript
This fixes macOS builds (getpid())
This commit is contained in:
parent
6ce8358709
commit
d0109bed16
3 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,6 @@
|
|||
#ifndef COMPILER_MSVC
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#else
|
||||
#include <process.h> // Needed for 'getpid()'
|
||||
|
||||
#include <lo/lo_osc_types.h>
|
||||
#define LO_TT_IMMEDIATE lo_get_tt_immediate()
|
||||
|
|
|
|||
|
|
@ -492,6 +492,8 @@ def configure(conf):
|
|||
autowaf.check_pkg(conf, 'pangoft2', uselib_store='PANGOFT2', atleast_version='1.36.8', mandatory=False)
|
||||
autowaf.check_pkg(conf, 'fontconfig', uselib_store='FONTCONFIG')
|
||||
|
||||
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD_H',mandatory=False)
|
||||
|
||||
if conf.env.CC_NAME == 'gcc' and Options.options.strict:
|
||||
conf.define('GLIB_DISABLE_DEPRECATION_WARNINGS', 1)
|
||||
for var in ['CFLAGS', 'CXXFLAGS']:
|
||||
|
|
|
|||
|
|
@ -341,7 +341,6 @@ def configure(conf):
|
|||
|
||||
conf.check(header_name='sys/vfs.h', define_name='HAVE_SYS_VFS_H',mandatory=False)
|
||||
conf.check(header_name='sys/statvfs.h', define_name='HAVE_SYS_STATVFS_H',mandatory=False)
|
||||
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD_H',mandatory=False)
|
||||
|
||||
have_sys_ioprio = conf.check_cc(
|
||||
msg="Checking for 'ioprio_set' syscall support",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue