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:
parent
0bf4507c08
commit
9f1fe401d9
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user