]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl.h: on FreeBSD include sys/param.h instead of osreldate.h
authorDaniel Stenberg <daniel@haxx.se>
Sat, 14 Oct 2023 20:47:49 +0000 (22:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 16 Oct 2023 17:40:02 +0000 (19:40 +0200)
Should things build on Playstation as well

Fixes #12107
Reported-by: Faraz Fallahi
Closes #12123

include/curl/curl.h

index bf71d82fb4b79abcd9253095ff63fcc0a9f51cbf..1ef7c8d450e21902a66543ec2e2a4da9a75f967d 100644 (file)
@@ -65,9 +65,9 @@
 #include <stdio.h>
 #include <limits.h>
 
-#if (defined(__FreeBSD__) && (__FreeBSD__ >= 2)) || defined(__MidnightBSD__)
+#if defined(__FreeBSD__) || defined(__MidnightBSD__)
 /* Needed for __FreeBSD_version or __MidnightBSD_version symbol definition */
-#include <osreldate.h>
+#include <sys/param.h>
 #endif
 
 /* The include stuff here below is mainly for time_t! */