From fd0f14b164dba288a73155fadcf894542795eb8f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 10 Feb 2026 09:21:36 +0100 Subject: [PATCH] hotspot: Fix build issue with missing _GNU_SOURCE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CC src/hotspot.o src/hotspot.c: In function ‘hotspot_init’: src/hotspot.c:516:39: error: ‘DT_UNKNOWN’ undeclared (first use in this function) 516 | if (dirent->d_type == DT_UNKNOWN) { | ^~~~~~~~~~ src/hotspot.c:516:39: note: each undeclared identifier is reported only once for each function it appears in src/hotspot.c:519:46: error: ‘DT_REG’ undeclared (first use in this function) 519 | } else if (dirent->d_type != DT_REG && | ^~~~~~ src/hotspot.c:520:67: error: ‘DT_LNK’ undeclared (first use in this function) 520 | dirent->d_type != DT_LNK) { | ^~~~~~ --- src/hotspot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hotspot.c b/src/hotspot.c index 89b3095f..3e7c3ee4 100644 --- a/src/hotspot.c +++ b/src/hotspot.c @@ -24,6 +24,7 @@ #include #endif +#define _GNU_SOURCE #include #include #include