Module: kamailio Branch: master Commit: 7562aed2b1c33942b508c6cae9aa7db5ab75196e URL: https://github.com/kamailio/kamailio/commit/7562aed2b1c33942b508c6cae9aa7db5...
Author: Victor Seva linuxmaniac@torreviejawireless.org Committer: Victor Seva linuxmaniac@torreviejawireless.org Date: 2023-12-22T09:56:08+01:00
benchmark: fix build warning
CC (gcc) [M benchmark.so] benchmark.o benchmark.c:41: warning: "_GNU_SOURCE" redefined 41 | #define _GNU_SOURCE | <command-line>: note: this is the location of the previous definition
---
Modified: src/modules/benchmark/benchmark.c
---
Diff: https://github.com/kamailio/kamailio/commit/7562aed2b1c33942b508c6cae9aa7db5... Patch: https://github.com/kamailio/kamailio/commit/7562aed2b1c33942b508c6cae9aa7db5...
---
diff --git a/src/modules/benchmark/benchmark.c b/src/modules/benchmark/benchmark.c index d28f8ea38a8..45cbe38c329 100644 --- a/src/modules/benchmark/benchmark.c +++ b/src/modules/benchmark/benchmark.c @@ -37,8 +37,9 @@ * configuration sections. * */ - +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include <string.h> #include <sys/time.h> #include <stdlib.h>