summaryrefslogtreecommitdiff
path: root/lib/libdisk/libdisk.h
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-03-18 21:30:11 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-03-18 21:30:11 +0000
commit135c56336aa54aa149984e8baf63abbc8cea33d5 (patch)
treec7184aac1cf08105a658ce6e0d1467ef030eece7 /lib/libdisk/libdisk.h
parente3a50e99c6619948c55a985abd4cfb8b6f00e490 (diff)
Notes
Diffstat (limited to 'lib/libdisk/libdisk.h')
-rw-r--r--lib/libdisk/libdisk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libdisk/libdisk.h b/lib/libdisk/libdisk.h
index 0a33717ff3c8..bea78ec52387 100644
--- a/lib/libdisk/libdisk.h
+++ b/lib/libdisk/libdisk.h
@@ -10,6 +10,14 @@
*
*/
+#ifdef __i386__
+#include <err.h>
+#define barfout(n, errstr) err(n, errstr)
+#else
+#include <stdio.h>
+#define barfout(n, errstr) fprintf(stderr, "\n\n\t***[ %s ]***\t\n\n", errstr)
+#endif
+
#define MAX_NO_DISKS 20
/* Max # of disks Disk_Names() will return */