Date: Tue, 23 Feb 2016 12:49:43 +0000 (UTC) From: Pietro Cerutti <gahr@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r409424 - head/lang/seed7/files Message-ID: <201602231249.u1NCnh7N083906@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gahr Date: Tue Feb 23 12:49:42 2016 New Revision: 409424 URL: https://svnweb.freebsd.org/changeset/ports/409424 Log: land/seed7: better patch for missing uint64_t Added: head/lang/seed7/files/patch-chkccomp.c (contents, props changed) Modified: head/lang/seed7/files/patch-heaputl.c Added: head/lang/seed7/files/patch-chkccomp.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/seed7/files/patch-chkccomp.c Tue Feb 23 12:49:42 2016 (r409424) @@ -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);" Modified: head/lang/seed7/files/patch-heaputl.c ============================================================================== --- head/lang/seed7/files/patch-heaputl.c Tue Feb 23 12:48:57 2016 (r409423) +++ head/lang/seed7/files/patch-heaputl.c Tue Feb 23 12:49:42 2016 (r409424) @@ -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 +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602231249.u1NCnh7N083906>