On FreeBSD we can't afford to have a build fail simply because there

was some sort of CTF conversion error.
This commit is contained in:
John Birrell 2008-04-26 03:44:47 +00:00
parent 0bf4507c08
commit 9f1fe401d9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178539

View File

@ -40,6 +40,9 @@ die(char *format, ...)
{
va_list ap;
int err = errno;
#if !defined(sun)
const char *progname = getprogname();
#endif
(void) fprintf(stderr, "%s: ", progname);
@ -51,13 +54,20 @@ die(char *format, ...)
if (format[strlen(format) - 1] != '\n')
(void) fprintf(stderr, ": %s\n", strerror(err));
#if defined(__FreeBSD__)
exit(0);
#else
exit(1);
#endif
}
void
elfdie(char *format, ...)
{
va_list ap;
#if !defined(sun)
const char *progname = getprogname();
#endif
(void) fprintf(stderr, "%s: ", progname);
@ -69,5 +79,9 @@ elfdie(char *format, ...)
if (format[strlen(format) - 1] != '\n')
(void) fprintf(stderr, ": %s\n", elf_errmsg(elf_errno()));
#if defined(__FreeBSD__)
exit(0);
#else
exit(1);
#endif
}