Module: kamailio Branch: master Commit: 268147a7a7bcf68689a913a94faecc87128187fb URL: https://github.com/kamailio/kamailio/commit/268147a7a7bcf68689a913a94faecc87...
Author: Victor Seva linuxmaniac@torreviejawireless.org Committer: Victor Seva linuxmaniac@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/268147a7a7bcf68689a913a94faecc87... Patch: https://github.com/kamailio/kamailio/commit/268147a7a7bcf68689a913a94faecc87...
---
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>