From d138ad36bc16bf8db75c7418c0d57d09164aca60 Mon Sep 17 00:00:00 2001 From: Roman Khapov Date: Fri, 24 Jan 2025 10:28:16 +0500 Subject: [PATCH] sources/util.h: fix warn on rhel builds (#752) Signed-off-by: rkhapov Co-authored-by: rkhapov --- sources/util.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sources/util.h b/sources/util.h index 5847e4aee..e7dd6e481 100644 --- a/sources/util.h +++ b/sources/util.h @@ -7,6 +7,12 @@ * Scalable PostgreSQL connection pooler. */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif + +#include + static inline int od_vsnprintf(char *buf, int size, char *fmt, va_list args) { int rc;