Loading...
gen/FreeBSD/assert.c Libc-825.26 Libc-1534.40.2
--- Libc/Libc-825.26/gen/FreeBSD/assert.c
+++ Libc/Libc-1534.40.2/gen/FreeBSD/assert.c
@@ -36,7 +36,12 @@
 #include <assert.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include "CrashReporterClient.h"
+#if __has_include(<CrashReporterClient.h>)
+#include <CrashReporterClient.h>
+#else
+#define CRGetCrashLogMessage() NULL
+#define CRSetCrashLogMessage(...)
+#endif
 #include "_simple.h"
 
 void
@@ -48,12 +53,12 @@
 	if (func == (const char *)-1L) {
 		/* 8462256: special case to replace __eprintf */
 		_simple_dprintf(STDERR_FILENO,
-		     "%s:%u: failed assertion `%s'\n", file, line, failedexpr);
+		     "%s:%d: failed assertion `%s'\n", file, line, failedexpr);
 		if (!CRGetCrashLogMessage()) {
 			_SIMPLE_STRING s = _simple_salloc();
 			if (s) {
 				_simple_sprintf(s,
-				  "%s:%u: failed assertion `%s'\n",
+				  "%s:%d: failed assertion `%s'\n",
 				  file, line, failedexpr);
 				CRSetCrashLogMessage(_simple_string(s));
 			} else