diff options
author | wollman <wollman@FreeBSD.org> | 2002-10-27 04:10:34 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2002-10-27 04:10:34 +0000 |
commit | 42aee7688f31eaf5c0bbbb9feb417b98fa807551 (patch) | |
tree | ecf2a4791500bde9262ec73d613db6c74b5e63d8 /usr.bin/getconf/getconf.h | |
parent | 1a051dea64e3c74c731afe21cc867a6fa9017e9a (diff) | |
download | FreeBSD-src-42aee7688f31eaf5c0bbbb9feb417b98fa807551.zip FreeBSD-src-42aee7688f31eaf5c0bbbb9feb417b98fa807551.tar.gz |
Add new 1003.1-2001/TC1/D6 parameters. (On final recirculation ballot now,
so this should be officially TC1 before the New Year.)
Add TrustedBSD pathconf parameters.
Add compilation support for -stable (to be merged momentarily).
Diffstat (limited to 'usr.bin/getconf/getconf.h')
-rw-r--r-- | usr.bin/getconf/getconf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/getconf/getconf.h b/usr.bin/getconf/getconf.h index 60d10d2..aab06a6 100644 --- a/usr.bin/getconf/getconf.h +++ b/usr.bin/getconf/getconf.h @@ -29,7 +29,13 @@ * $FreeBSD$ */ -#include <stdint.h> +#ifdef STABLE +typedef long long intmax_t; +#define strtoimax(p, ep, radix) (strtoll((p), (ep), (radix))) +#define PRIdMAX "lld" +#else +#include <inttypes.h> +#endif int find_confstr(const char *name, int *key); int find_limit(const char *name, intmax_t *value); |