Move unistd.h detection to the correct wscript

This fixes macOS builds (getpid())
This commit is contained in:
Robin Gareus 2025-12-02 16:38:42 +01:00
parent 6ce8358709
commit d0109bed16
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
3 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,6 @@
#ifndef COMPILER_MSVC #ifndef COMPILER_MSVC
#pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wunused-parameter"
#else #else
#include <process.h> // Needed for 'getpid()'
#include <lo/lo_osc_types.h> #include <lo/lo_osc_types.h>
#define LO_TT_IMMEDIATE lo_get_tt_immediate() #define LO_TT_IMMEDIATE lo_get_tt_immediate()

View file

@ -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, 'pangoft2', uselib_store='PANGOFT2', atleast_version='1.36.8', mandatory=False)
autowaf.check_pkg(conf, 'fontconfig', uselib_store='FONTCONFIG') 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: if conf.env.CC_NAME == 'gcc' and Options.options.strict:
conf.define('GLIB_DISABLE_DEPRECATION_WARNINGS', 1) conf.define('GLIB_DISABLE_DEPRECATION_WARNINGS', 1)
for var in ['CFLAGS', 'CXXFLAGS']: for var in ['CFLAGS', 'CXXFLAGS']:

View file

@ -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/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='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( have_sys_ioprio = conf.check_cc(
msg="Checking for 'ioprio_set' syscall support", msg="Checking for 'ioprio_set' syscall support",