diff options
Diffstat (limited to 'src/betab.c')
-rw-r--r-- | src/betab.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/betab.c b/src/betab.c index b583958..49e02f7 100644 --- a/src/betab.c +++ b/src/betab.c | |||
@@ -59,7 +59,13 @@ create_entry(netsnmp_tdata *table_data, long idx, | |||
59 | #define VSC_POINT_TYPE(p) ((p)->section->fantom->type) | 59 | #define VSC_POINT_TYPE(p) ((p)->section->fantom->type) |
60 | #define VSC_POINT_IDENT(p) ((p)->section->fantom->ident) | 60 | #define VSC_POINT_IDENT(p) ((p)->section->fantom->ident) |
61 | #define VSC_POINT_NAME(p) ((p)->desc->name) | 61 | #define VSC_POINT_NAME(p) ((p)->desc->name) |
62 | #define VSC_POINT_FMT(p) ((p)->desc->fmt) | 62 | #if VARNISHAPI_MINOR == 0 |
63 | # define VSC_POINT_FMT(p) ((p)->desc->fmt) | ||
64 | #elif VARNISHAPI_MINOR == 1 | ||
65 | # define VSC_POINT_FMT(p) ((p)->desc->ctype) | ||
66 | #else | ||
67 | # error "unsupported Varnish API minor number" | ||
68 | #endif | ||
63 | 69 | ||
64 | struct betab_priv { | 70 | struct betab_priv { |
65 | int err; | 71 | int err; |