commit fd0f14b164dba288a73155fadcf894542795eb8f
parent e5e7e67d0d143e0f5c6512b1f2042aa25d52bc24
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Tue, 10 Feb 2026 09:21:36 +0100
hotspot: Fix build issue with missing _GNU_SOURCE
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) {
| ^~~~~~
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/hotspot.c b/src/hotspot.c
@@ -24,6 +24,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <dirent.h>
#include <errno.h>
#include <stdio.h>