From 480cd4932f60be79c7e6cab4b2136cb4292c3db6 Mon Sep 17 00:00:00 2001 From: Edd Barrett Date: Thu, 16 Dec 2010 14:17:03 +0000 Subject: Fix linux build. Linux does not have fmt_scaled() or tree.h, so we have copied them over from OpenBSD. OK marco@ --- linux/util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'linux/util.h') diff --git a/linux/util.h b/linux/util.h index 2b4cc6a..d0ad170 100644 --- a/linux/util.h +++ b/linux/util.h @@ -14,6 +14,8 @@ char *fparseln(FILE *, size_t *, size_t *, const char [3], int); long long strtonum(const char *, long long, long long, const char **); +int fmt_scaled(long long number, char *result); + #ifndef WAIT_ANY #define WAIT_ANY (-1) #endif @@ -22,3 +24,8 @@ long long strtonum(const char *, long long, long long, const char **); #ifndef TAILQ_END #define TAILQ_END(head) NULL #endif + +/* + * fmt_scaled(3) specific flags. (from OpenBSD util.h) + */ +#define FMT_SCALED_STRSIZE 7 /* minus sign, 4 digits, suffix, null byte */ -- cgit 1.4.1-2-gfad0