← Commit list

432fbd7a1

Denys Vlasenko
Denys Vlasenko
2014-01-07
SUCCESS Duration: 142s

Subject

platform.h: undef HAVE_STRCHRNUL only on correct versions of FreeBSD

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

include/platform.h+12 -5
@@ -385,10 +385,6 @@ typedef unsigned smalluint;
# undef HAVE_STRVERSCMP
#endif
-#if defined(__dietlibc__)
-# undef HAVE_STRCHRNUL
-#endif
-
#if defined(__WATCOMC__)
# undef HAVE_DPRINTF
# undef HAVE_GETLINE
@@ -434,10 +430,21 @@ typedef unsigned smalluint;
# undef HAVE_UNLOCKED_LINE_OPS
#endif
-#if defined(__FreeBSD__) || defined(__APPLE__)
+#if defined(__dietlibc__)
# undef HAVE_STRCHRNUL
#endif
+#if defined(__APPLE__)
+# undef HAVE_STRCHRNUL
+#endif
+
+#if defined(__FreeBSD__)
+# include <sys/param.h>
+# if __FreeBSD_version < 1000029
+# undef HAVE_STRCHRNUL
+# endif
+#endif
+
#if defined(__NetBSD__)
# define HAVE_GETLINE 1 /* Recent NetBSD versions have getline() */
#endif