Fix building on apple

This commit is contained in:
Kovid Goyal 2024-05-16 21:24:36 +05:30
parent 1e1f99cebc
commit 176dab37d9
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -196,6 +196,7 @@ systemd_move_pid_into_new_scope(PyObject *self UNUSED, PyObject *args) {
long pid; const char *scope_name, *description;
if (!PyArg_ParseTuple(args, "lss", &pid, &scope_name, &description)) return NULL;
#ifdef __APPLE__
(void)ensure_initialized_and_useable; (void)move_pid_into_new_scope;
PyErr_SetString(PyExc_NotImplementedError, "not supported on this platform");
#else
if (!ensure_initialized_and_useable()) return NULL;