Module: kamailio
Branch: master
Commit: 268147a7a7bcf68689a913a94faecc87128187fb
URL: 
https://github.com/kamailio/kamailio/commit/268147a7a7bcf68689a913a94faecc87128187fb

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2023-12-22T09:00:08+01:00

core: fix build warning

> CC (gcc) [M jansson.so]               jansson_utils.o
> jansson_utils.c:23: warning: "_GNU_SOURCE" redefined
>    23 | #define _GNU_SOURCE
>       |
> <command-line>: note: this is the location of the previous definition

---

Modified: src/core/io_wait.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/268147a7a7bcf68689a913a94faecc87128187fb.diff
Patch: 
https://github.com/kamailio/kamailio/commit/268147a7a7bcf68689a913a94faecc87128187fb.patch

---

diff --git a/src/core/io_wait.h b/src/core/io_wait.h
index 8a60ae280fa..14d93f5937f 100644
--- a/src/core/io_wait.h
+++ b/src/core/io_wait.h
@@ -47,7 +47,9 @@
 #include <signal.h>            /* sigprocmask, sigwait a.s.o */
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE /* for POLLRDHUP on linux */
+#endif
 #include <poll.h>
 #include <fcntl.h>
 

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to