From: Daniel Stenberg Date: Sat, 14 Oct 2023 20:47:49 +0000 (+0200) Subject: curl.h: on FreeBSD include sys/param.h instead of osreldate.h X-Git-Tag: curl-8_5_0~239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b6d9ac8d9e10668a354f7a95bee685bf9004a0e;p=thirdparty%2Fcurl.git curl.h: on FreeBSD include sys/param.h instead of osreldate.h Should things build on Playstation as well Fixes #12107 Reported-by: Faraz Fallahi Closes #12123 --- diff --git a/include/curl/curl.h b/include/curl/curl.h index bf71d82fb4..1ef7c8d450 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -65,9 +65,9 @@ #include #include -#if (defined(__FreeBSD__) && (__FreeBSD__ >= 2)) || defined(__MidnightBSD__) +#if defined(__FreeBSD__) || defined(__MidnightBSD__) /* Needed for __FreeBSD_version or __MidnightBSD_version symbol definition */ -#include +#include #endif /* The include stuff here below is mainly for time_t! */