From 5151d592080f7e5339bdb85b55d28a0f373d338f Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 17 Aug 2026 10:00:11 +0200 Subject: [PATCH] Fix undefined _linux macro typo to __linux__ --- cmdline/state.c | 2 +- os/unix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmdline/state.c b/cmdline/state.c index 78b579d0..359a4be5 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -4857,7 +4857,7 @@ static void state_rename_content(struct snapraid_state* state) { tommy_node* i; -#if defined(_linux) /* this sequence is linux specific */ +#if defined(__linux__) /* this sequence is linux specific */ i = tommy_list_head(&state->contentlist); while (i) { struct snapraid_content* content = i->data; diff --git a/os/unix.c b/os/unix.c index 9311fa64..f50bb063 100644 --- a/os/unix.c +++ b/os/unix.c @@ -1849,7 +1849,7 @@ void os_abort(void) const char* platform; const char* compiler; -#ifdef _linux +#ifdef __linux__ platform = ", linux"; #elif defined(__APPLE__) platform = ", macOS";