diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8fb24bd0f..7e1b829cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,8 +21,8 @@ variables: # Default CI job setup; contrast with `.only-origin`. # -# Don’t execute the pipeline when a merge request is merged into `main`, as it -# will have already been tested +# Don’t execute the pipeline when a merge request is merged into `origin/main`, +# as it will have already been tested .only-default: only: - branches @@ -30,7 +30,7 @@ variables: refs: - tags variables: - - $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + - $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_NAMESPACE == "GNOME" # Some jobs run on CI runners which don’t have good isolation between CI jobs, # and don’t have much available resource. Limit those jobs to only ones on the diff --git a/glib/gspawn.c b/glib/gspawn.c index 0a7bf0a71..3fcc2d659 100644 --- a/glib/gspawn.c +++ b/glib/gspawn.c @@ -70,7 +70,7 @@ #include "glibintl.h" #include "glib-unix.h" -#ifdef __APPLE__ +#if defined(__APPLE__) && defined(HAVE_LIBPROC_H) #include #include #endif @@ -1534,7 +1534,7 @@ safe_fdwalk_with_invalid_fds (int (*cb)(void *data, int fd), void *data) if (open_max < 0) open_max = 4096; -#if defined(__APPLE__) +#if defined(__APPLE__) && defined(HAVE_LIBPROC_H) /* proc_pidinfo isn't documented as async-signal-safe but looking at the implementation * in the darwin tree here: * diff --git a/meson.build b/meson.build index d875346b4..dbfa8ff35 100644 --- a/meson.build +++ b/meson.build @@ -363,6 +363,7 @@ headers = [ 'fstab.h', 'grp.h', 'inttypes.h', + 'libproc.h', 'limits.h', 'locale.h', 'mach/mach_time.h',