[Git][NTPsec/ntpsec][master] ntpd/refclock_gpsd.c: Set XOPEN_SOURCE 700 for strptime().
Gary E. Miller (@garyedmundsmiller)
gitlab at mg.gitlab.com
Mon Oct 27 22:40:37 UTC 2025
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
75ae8da2 by Gary E. Miller at 2025-10-27T15:35:44-07:00
ntpd/refclock_gpsd.c: Set XOPEN_SOURCE 700 for strptime().
- - - - -
1 changed file:
- ntpd/refclock_gpsd.c
Changes:
=====================================
ntpd/refclock_gpsd.c
=====================================
@@ -103,7 +103,13 @@ typedef unsigned long int json_uint;
#include <math.h>
#include <netdb.h>
#include <string.h>
+
+// _XOPEN_SOURCE needed for strptime()
+// For OpenBSD, the value must be at least 500
+// For FreeBSD, the value must be at least 700 for ldexpl() in ntp_fp.h
+#define _XOPEN_SOURCE 700
#include <time.h> // for strptime()
+
#include <unistd.h>
#include <sys/select.h>
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/75ae8da238a9ba216fe90299ca9dba47bb767ba5
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/75ae8da238a9ba216fe90299ca9dba47bb767ba5
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/20251027/daeaa72d/attachment.htm>
More information about the vc
mailing list