[Git][NTPsec/ntpsec][master] Fix warning about implicit definition of clock_gettime on Solaris
Matt Selsky
gitlab at mg.gitlab.com
Sat Dec 9 06:18:44 UTC 2017
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
f9252183 by Matt Selsky at 2017-12-09T00:48:53-05:00
Fix warning about implicit definition of clock_gettime on Solaris
../../ntpfrob/precision.c: In function 'default_get_resolution':
../../ntpfrob/precision.c:78:2: warning: implicit declaration of function 'clock_gettime' [-Wimplicit-function-declaration]
clock_gettime(CLOCK_REALTIME, &tp);
^
Include config.h before system headers so that "standards" macros get defined
early enough
- - - - -
1 changed file:
- ntpfrob/precision.c
Changes:
=====================================
ntpfrob/precision.c
=====================================
--- a/ntpfrob/precision.c
+++ b/ntpfrob/precision.c
@@ -3,12 +3,13 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-#include "ntp_types.h"
-#include "ntp_calendar.h"
+#include "config.h"
#include <stdio.h>
#include <stdbool.h>
+#include "ntp_types.h"
+#include "ntp_calendar.h"
#include "ntpfrob.h"
#define DEFAULT_SYS_PRECISION -99
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f9252183884acc42bcbd131ffa9e9637750560e2
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f9252183884acc42bcbd131ffa9e9637750560e2
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171209/62968d76/attachment.html>
More information about the vc
mailing list