summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2016-10-20 13:29:50 +0100
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2016-10-20 13:29:50 +0100
commit1946ca1569f5d47e6ceffab716bce3a4169646fe (patch)
treeb64a37e04d7badd041ecc890283c49d4f874d490 /dist
parenta9f5ab8de62884067808d6b114a8c2df780fb054 (diff)
downloadperl-1946ca1569f5d47e6ceffab716bce3a4169646fe.tar.gz
Include time.h when testing for clock_xxx functions and syscalls
Diffstat (limited to 'dist')
-rw-r--r--dist/Time-HiRes/Makefile.PL2
1 files changed, 2 insertions, 0 deletions
diff --git a/dist/Time-HiRes/Makefile.PL b/dist/Time-HiRes/Makefile.PL
index 340ee99a47..9889f1dd26 100644
--- a/dist/Time-HiRes/Makefile.PL
+++ b/dist/Time-HiRes/Makefile.PL
@@ -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;