From: Alan T. DeKok Date: Wed, 17 May 2017 19:19:35 +0000 (-0400) Subject: be more gentle with USEC X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=324fa3c8b187be1454929117722442e5fbeb5189;p=thirdparty%2Ffreeradius-server.git be more gentle with USEC --- diff --git a/src/modules/proto_dhcp/proto_dhcp.c b/src/modules/proto_dhcp/proto_dhcp.c index f8c00b11c03..f6694f117f1 100644 --- a/src/modules/proto_dhcp/proto_dhcp.c +++ b/src/modules/proto_dhcp/proto_dhcp.c @@ -455,7 +455,9 @@ static rlm_rcode_t dhcp_process(REQUEST *request) request->response_delay.tv_usec = 0; } } else { +#ifndef USEC #define USEC 1000000 +#endif vp = fr_pair_find_by_num(request->reply->vps, 0, PW_FREERADIUS_RESPONSE_DELAY_USEC, TAG_ANY); if (vp) { if (vp->vp_uint32 <= 10 * USEC) {