From: Florian Forster Date: Tue, 19 Dec 2023 08:51:54 +0000 (+0100) Subject: src/bind.c: Importing changes from `main`. X-Git-Tag: 6.0.0-rc0~2^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f88297730a4c35840e1a8941d5fc7ceac303c606;p=thirdparty%2Fcollectd.git src/bind.c: Importing changes from `main`. Changes: 93fbc158d09b85b98333f08ab16ce2c79f8271c4 Fix glibc feature macro handling for timegm --- diff --git a/src/bind.c b/src/bind.c index a246f1aac..4a7c02425 100644 --- a/src/bind.c +++ b/src/bind.c @@ -33,13 +33,13 @@ #ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 500 #endif -#endif /* STRPTIME_NEEDS_STANDARDS */ - -#if TIMEGM_NEEDS_BSD #ifndef _BSD_SOURCE -#define _BSD_SOURCE 1 +#define _BSD_SOURCE #endif -#endif /* TIMEGM_NEEDS_BSD */ +#ifndef _DEFAULT_SOURCE +#define _DEFAULT_SOURCE +#endif +#endif /* STRPTIME_NEEDS_STANDARDS */ #include "collectd.h"