Include time.h when testing for clock_xxx functions and syscalls
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 20 Oct 2016 12:29:50 +0000 (13:29 +0100)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 20 Oct 2016 12:29:50 +0000 (13:29 +0100)
dist/Time-HiRes/Makefile.PL

index 340ee99..9889f1d 100644 (file)
@@ -290,6 +290,7 @@ sub has_clock_xxx_syscall {
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
+#include <time.h>
 #include <$SYSCALL_H>
 int main(int argc, char** argv)
 {
@@ -309,6 +310,7 @@ sub has_clock_xxx {
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
+#include <time.h>
 int main(int argc, char** argv)
 {
     struct timespec ts;