diff options
author | ru <ru@FreeBSD.org> | 2005-12-04 00:25:03 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-12-04 00:25:03 +0000 |
commit | 63d1fc762367223d38182342a0053ef4fcc269dc (patch) | |
tree | b2060c66daa3baab33f099ba3e3d255f869e4e68 /sys | |
parent | 55eca1baec8fd737b041c8507c3448db1e92746b (diff) | |
download | FreeBSD-src-63d1fc762367223d38182342a0053ef4fcc269dc.zip FreeBSD-src-63d1fc762367223d38182342a0053ef4fcc269dc.tar.gz |
Use __LP64__ to check for the 64-bit pointer type, and fix -Wundef.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netgraph/ng_vjc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netgraph/ng_vjc.c b/sys/netgraph/ng_vjc.c index 1321233..ec70956 100644 --- a/sys/netgraph/ng_vjc.c +++ b/sys/netgraph/ng_vjc.c @@ -109,12 +109,10 @@ static const struct ng_parse_type ng_vjc_config_type = { /* Parse type for the 'last_cs' and 'cs_next' fields in struct slcompress, which are pointers converted to integer indices, so parse them that way. */ -#if _MACHINE_ARCH == i386 +#ifndef __LP64__ #define NG_VJC_TSTATE_PTR_TYPE &ng_parse_uint32_type -#elif _MACHINE_ARCH == alpha -#define NG_VJC_TSTATE_PTR_TYPE &ng_parse_uint64_type #else -#error Unspported _MACHINE_ARCH +#define NG_VJC_TSTATE_PTR_TYPE &ng_parse_uint64_type #endif /* Parse type for the 'cs_hdr' field in a struct cstate. Ideally we would |