Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH luajit] symtab: check the _GNU_SOURCE definition
@ 2022-05-18 12:31 Maxim Kokryashkin via Tarantool-patches
  2022-05-18 12:31 ` [Tarantool-patches] [PATCH luajit] sysprof: replace `backtrace` with libunwind Maxim Kokryashkin via Tarantool-patches
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Maxim Kokryashkin via Tarantool-patches @ 2022-05-18 12:31 UTC (permalink / raw)
  To: tarantool-patches, imun, skaplun

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-26 16:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18 12:31 [Tarantool-patches] [PATCH luajit] symtab: check the _GNU_SOURCE definition Maxim Kokryashkin via Tarantool-patches
2022-05-18 12:31 ` [Tarantool-patches] [PATCH luajit] sysprof: replace `backtrace` with libunwind Maxim Kokryashkin via Tarantool-patches
2022-05-26 16:33   ` Igor Munkin via Tarantool-patches
2022-05-18 14:31 ` [Tarantool-patches] [PATCH luajit] symtab: check the _GNU_SOURCE definition Igor Munkin via Tarantool-patches
2022-05-19  5:25 ` Sergey Kaplun via Tarantool-patches
2022-05-26 16:30 ` Igor Munkin via Tarantool-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox