aboutsummaryrefslogtreecommitdiff
path: root/lang/seed7
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2016-02-23 12:49:42 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2016-02-23 12:49:42 +0000
commitfe905235c764ff3959009a2580c683aa4e690a63 (patch)
tree07d6a942c9fa0cd2ef1db79fea8ee93df25ea147 /lang/seed7
parent46fa2fd22847a45399581df47c0c09e72c81793a (diff)
downloadports-fe905235c764ff3959009a2580c683aa4e690a63.tar.gz
ports-fe905235c764ff3959009a2580c683aa4e690a63.zip
land/seed7: better patch for missing uint64_t
Notes
Notes: svn path=/head/; revision=409424
Diffstat (limited to 'lang/seed7')
-rw-r--r--lang/seed7/files/patch-chkccomp.c28
-rw-r--r--lang/seed7/files/patch-heaputl.c8
2 files changed, 32 insertions, 4 deletions
diff --git a/lang/seed7/files/patch-chkccomp.c b/lang/seed7/files/patch-chkccomp.c
new file mode 100644
index 000000000000..3ec825d35917
--- /dev/null
+++ b/lang/seed7/files/patch-chkccomp.c
@@ -0,0 +1,28 @@
+--- chkccomp.c.orig 2016-01-28 21:32:12 UTC
++++ chkccomp.c
+@@ -1925,14 +1925,14 @@ void determineGetaddrlimit (FILE *versio
+ int has_getrlimit;
+
+ /* determineGetaddrlimit */
+- has_getrlimit = compileAndLinkOk("#include <stdio.h>\n#include <sys/resource.h>\n"
++ has_getrlimit = compileAndLinkOk("#include <stdio.h>\n#include <sys/types.h>\n#include <sys/resource.h>\n"
+ "int main(int argc, char *argv[]){\n"
+ "struct rlimit rlim;\n"
+ "printf(\"%d\\n\", getrlimit(RLIMIT_STACK, &rlim) == 0);\n"
+ "return 0;}\n") && doTest() == 1;
+ fprintf(versionFile, "#define HAS_GETRLIMIT %d\n", has_getrlimit);
+ if (has_getrlimit) {
+- if (assertCompAndLnk("#include <stdio.h>\n#include <sys/resource.h>\n"
++ if (assertCompAndLnk("#include <stdio.h>\n#include <sys/types.h>\n#include <sys/resource.h>\n"
+ "int main(int argc, char *argv[]){\n"
+ "struct rlimit rlim;\n"
+ "getrlimit(RLIMIT_STACK, &rlim);"
+@@ -1943,7 +1943,7 @@ void determineGetaddrlimit (FILE *versio
+ "return 0;}\n")) {
+ fprintf(versionFile, "#define SOFT_STACK_LIMIT %lu\n", (unsigned long) doTest() * 1024);
+ } /* if */
+- if (assertCompAndLnk("#include <stdio.h>\n#include <sys/resource.h>\n"
++ if (assertCompAndLnk("#include <stdio.h>\n#include <sys/types.h>\n#include <sys/resource.h>\n"
+ "int main(int argc, char *argv[]){\n"
+ "struct rlimit rlim;\n"
+ "getrlimit(RLIMIT_STACK, &rlim);"
diff --git a/lang/seed7/files/patch-heaputl.c b/lang/seed7/files/patch-heaputl.c
index dd0d6ed1cc42..136b94ee0431 100644
--- a/lang/seed7/files/patch-heaputl.c
+++ b/lang/seed7/files/patch-heaputl.c
@@ -1,10 +1,10 @@
---- heaputl.c.orig 2016-02-05 14:25:17 UTC
+--- heaputl.c.orig 2015-08-29 06:55:33 UTC
+++ heaputl.c
-@@ -36,6 +36,7 @@
-
+@@ -37,6 +37,7 @@
#include "stdlib.h"
#include "stdio.h"
-+#include "stdint.h"
#if HAS_GETRLIMIT && defined STACK_SIZE
++#include "sys/types.h"
#include "sys/resource.h"
#endif
+