]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2677] PATH_MAX isn't #define'd under Windows
authorHarlan Stenn <stenn@ntp.org>
Thu, 20 Nov 2014 10:21:46 +0000 (10:21 +0000)
committerHarlan Stenn <stenn@ntp.org>
Thu, 20 Nov 2014 10:21:46 +0000 (10:21 +0000)
bk: 546dc0ba-mmzSztwt0lsBSklTMfVIw

ChangeLog
ntpd/ntp_loopfilter.c

index 2e9d39009916069a701579df5084c1fb0baf9d02..e51e3d1b4a64f779fc0a4ba9afc59214c87e828e 100644 (file)
--- 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 <stenn@ntp.org>
 * [Bug 2651] Certificates with ASN timestamps w/ 4-digit years mis-parsed.
 (4.2.7p478) 2014/11/14 Released by Harlan Stenn <stenn@ntp.org>
index e277d1cbafe27afe5b566cb833edf530fbfd9663..00260fea04d32df843d6993a69211f413fc97358 100644 (file)
@@ -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;