diff --git a/src/x86/Lglobal.c b/src/x86/Lglobal.c
index e69de29b..6d7b489e 100644
--- a/src/x86/Lglobal.c
+++ b/src/x86/Lglobal.c
@@ -0,0 +1,5 @@
+#define UNW_LOCAL_ONLY
+#include <libunwind.h>
+#if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY)
+#include "Gglobal.c"
+#endif