commit 88b7523e13100629f86de7afc099b53dd672d1e4
parent cbd62cc2d39557728a1c49b67cdd13951217fd3b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 6 Jan 2022 18:36:28 +0300
Fixed compiler warning in examples
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/doc/examples/sessions.c b/doc/examples/sessions.c
@@ -2,7 +2,9 @@
you see fit (Public Domain) */
/* needed for asprintf */
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
#include <stdlib.h>
#include <string.h>