From: Harlan Stenn Date: Thu, 20 Nov 2014 10:21:46 +0000 (+0000) Subject: [Bug 2677] PATH_MAX isn't #define'd under Windows X-Git-Tag: NTP_4_2_7P480~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=796d3c23983b00fb72b3a8e759822918eeabec82;p=thirdparty%2Fntp.git [Bug 2677] PATH_MAX isn't #define'd under Windows bk: 546dc0ba-mmzSztwt0lsBSklTMfVIw --- diff --git a/ChangeLog b/ChangeLog index 2e9d39009..e51e3d1b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ +* [Bug 2677] PATH_MAX isn't #define'd under Windows. + Regression from the patch fixing Bug 2639. (4.2.7p479) 2014/11/15 Released by Harlan Stenn * [Bug 2651] Certificates with ASN timestamps w/ 4-digit years mis-parsed. (4.2.7p478) 2014/11/14 Released by Harlan Stenn diff --git a/ntpd/ntp_loopfilter.c b/ntpd/ntp_loopfilter.c index e277d1cba..00260fea0 100644 --- a/ntpd/ntp_loopfilter.c +++ b/ntpd/ntp_loopfilter.c @@ -124,6 +124,9 @@ static int loop_started; /* TRUE after LOOP_DRIFTINIT */ static void rstclock (int, double); /* transition function */ static double direct_freq(double); /* direct set frequency */ static void set_freq(double); /* set frequency */ +#ifndef PATH_MAX +# define PATH_MAX MAX_PATH +#endif static char relative_path[PATH_MAX + 1]; /* relative path per recursive make */ static char *this_file = NULL;