Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

Fix Linux build: add _DEFAULT_SOURCE for endian macros

Martin Vogelaffa63a435df
diff --git a/internal/cbm/cbm.go b/internal/cbm/cbm.go
index 44defaa0b..3f6764834 100644
--- a/internal/cbm/cbm.go
+++ b/internal/cbm/cbm.go
@@ -1,7 +1,7 @@
package cbm
/*
-#cgo CFLAGS: -std=c11 -O2 -Wall -Ivendored/ts_runtime/include
+#cgo CFLAGS: -std=c11 -D_DEFAULT_SOURCE -O2 -Wall -Ivendored/ts_runtime/include
#include "cbm.h"
#include "helpers.h"
#include "lang_specs.h"