From 778f60c193d35fa68a9f39c4309154bf9683f0f5 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Wed, 28 Sep 2022 10:46:13 +0800 Subject: [PATCH] fix: warning of `execvpe` --- include/constant.h | 2 +- src/utils/process.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/constant.h b/include/constant.h index fd4ce04..a1dbc16 100644 --- a/include/constant.h +++ b/include/constant.h @@ -12,7 +12,7 @@ #define DIVERTER_TIMEOUT 6 -#define VERSION "1.3.0-beta2" +#define VERSION "1.3.0-rc1" #define CONFIG_FILE "cleardns.yml" #define ADGUARD_USER "admin" diff --git a/src/utils/process.c b/src/utils/process.c index 34ae3e9..a37f2cd 100644 --- a/src/utils/process.c +++ b/src/utils/process.c @@ -1,3 +1,7 @@ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE // NOLINT +#endif + #include #include #include