[Tarantool-patches] [PATCH luajit] symtab: check the _GNU_SOURCE definition
Maxim Kokryashkin
max.kokryashkin at gmail.com
Wed May 18 15:31:07 MSK 2022
Now the `_GNU_SOURCE` in `lj_symtab.c` is only defined when it wasn't
defined yet. That chnage fixes the macro redifinition warning.
Part of tarantool/tarantool#5813
---
Branch: https://github.com/tarantool/luajit/tree/fckxorg/sysprof-rc-full-ci
src/lj_symtab.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/lj_symtab.c b/src/lj_symtab.c
index 57045765..2b2b205b 100644
--- a/src/lj_symtab.c
+++ b/src/lj_symtab.c
@@ -7,7 +7,10 @@
#define lj_symtab_c
#define LUA_CORE
+
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include "lj_symtab.h"
--
2.36.1
More information about the Tarantool-patches
mailing list