diff options
author | Stevan Andjelkovic <stevan@student.chalmers.se> | 2011-01-17 01:43:34 +0000 |
---|---|---|
committer | Stevan Andjelkovic <stevan@student.chalmers.se> | 2011-01-17 01:43:34 +0000 |
commit | 52a4311e6aeb3f0c14951c46b3259b277869aa3c (patch) | |
tree | 386fb8c40be8fb58debc1d0921d6cb6457f673e3 /freebsd/util.h | |
parent | fcbe212face207de8c7e34c73d3da9e41e705d02 (diff) | |
download | xombrero-52a4311e6aeb3f0c14951c46b3259b277869aa3c.tar.gz |
Further attempts to make it compile on FreeBSD. ok marco@
Diffstat (limited to 'freebsd/util.h')
-rw-r--r-- | freebsd/util.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/freebsd/util.h b/freebsd/util.h new file mode 100644 index 0000000..5bab09f --- /dev/null +++ b/freebsd/util.h @@ -0,0 +1,11 @@ +/* + * This file tries to make up for the difference between OpenBSD's + * <util.h> and FreeBSD's <libutil.h>. + */ + +/* + * fmt_scaled(3) specific flags. (from OpenBSD util.h) + */ +#define FMT_SCALED_STRSIZE 7 /* minus sign, 4 digits, suffix, null byte */ + +int fmt_scaled(long long number, char *result); |