From b3cebbf31cb96c1ef402a4dbd617805423b51593 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 31 Oct 2022 09:41:05 -0400 Subject: rts: Check for program_invocation_short_name via autoconf Instead of assuming support on all Linuxes. --- rts/Task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rts/Task.c') diff --git a/rts/Task.c b/rts/Task.c index 5c6d3cdf44..6dbc597769 100644 --- a/rts/Task.c +++ b/rts/Task.c @@ -477,7 +477,7 @@ startWorkerTask (Capability *cap) // Set the name of the worker thread to the original process name followed by // ":w", but only if we're on Linux where the program_invocation_short_name // global is available. -#if defined(linux_HOST_OS) +#if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME) size_t procname_len = strlen(program_invocation_short_name); char worker_name[16]; // The kernel only allocates 16 bytes for thread names, so we truncate if the -- cgit v1.2.1