From 3d0d62c38f3fac154da75f7186fee674d931def6 Mon Sep 17 00:00:00 2001 From: Jon Schlueter Date: Wed, 25 Mar 2015 15:33:05 -0400 Subject: fixing broken scons minimal=on test_packet Missing guard on RECONFIGURE_ENABLE --- test_packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test_packet.c') diff --git a/test_packet.c b/test_packet.c index 88cfec51..e8f6e34e 100644 --- a/test_packet.c +++ b/test_packet.c @@ -349,7 +349,7 @@ static int property_check(void) for (dp = gpsd_drivers; *dp; dp++) { if (*dp == NULL || (*dp)->packet_type == COMMENT_PACKET) continue; -#ifdef CONTROLSEND_ENABLE +#if defined(CONTROLSEND_ENABLE) && defined(RECONFIGURE_ENABLE) if (CONTROLLABLE(*dp) && (*dp)->control_send == NULL) { (void)fprintf(stderr, "%s has control methods but no send\n", (*dp)->type_name); @@ -365,7 +365,7 @@ static int property_check(void) (*dp)->type_name); status = EXIT_FAILURE; } -#endif /* CONTROLSEND_ENABLE */ +#endif /* CONTROLSEND_ENABLE && RECONFIGURE_ENABLE*/ } return status; -- cgit v1.2.1