diff options
author | gahr <gahr@FreeBSD.org> | 2016-02-23 20:49:42 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2016-02-23 20:49:42 +0800 |
commit | 714aea9cb3b5521d1190c04eaa23070bfd02c132 (patch) | |
tree | 07d6a942c9fa0cd2ef1db79fea8ee93df25ea147 /lang/seed7/files | |
parent | 89bae0ca3649daabf7e75cb55c22561282c8d91c (diff) | |
download | freebsd-ports-gnome-714aea9cb3b5521d1190c04eaa23070bfd02c132.tar.gz freebsd-ports-gnome-714aea9cb3b5521d1190c04eaa23070bfd02c132.tar.zst freebsd-ports-gnome-714aea9cb3b5521d1190c04eaa23070bfd02c132.zip |
land/seed7: better patch for missing uint64_t
Diffstat (limited to 'lang/seed7/files')
-rw-r--r-- | lang/seed7/files/patch-chkccomp.c | 28 | ||||
-rw-r--r-- | lang/seed7/files/patch-heaputl.c | 8 |
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 + |