develooper Front page | perl.perl5.porters | Postings from September 2019

[perl #134432] Port futimes check in Configure to C99

Thread Next
From:
Florian Weimer
Date:
September 11, 2019 05:24
Subject:
[perl #134432] Port futimes check in Configure to C99
Message ID:
rt-4.0.24-27904-1568052872-1538.134432-75-0@perl.org
# New Ticket Created by  Florian Weimer 
# Please include the string:  [perl #134432]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=134432 >


Something like the patch below is required, otherwise the check will
always fail with a C99 compiler.

Thanks,
Florian

>From 1102b02155a7b11ef60b04a620aacfd6c7b84948 Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Mon, 9 Sep 2019 19:35:47 +0200
Subject: [PATCH] Configure: Include <stdlib.h> in futimes check

Needed for the exit function.
---
 Configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Configure b/Configure
index 818deb8378..7aa03d6aed 100755
--- a/Configure
+++ b/Configure
@@ -14091,6 +14091,7 @@ $cat >try.c <<EOCP
 #include <sys/time.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <stdlib.h>
 
 int main ()
 {
-- 
2.21.0


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About