Date: Mon, 3 Nov 2014 06:58:45 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r372095 - head/sysutils/mcelog/files Message-ID: <201411030658.sA36wjNk013159@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marino Date: Mon Nov 3 06:58:45 2014 New Revision: 372095 URL: https://svnweb.freebsd.org/changeset/ports/372095 QAT: https://qat.redports.org/buildarchive/r372095/ Log: sysutils/mcelog: Remove patch for unsupported versions of FreeBSD PR: 194767 Submitted by: Francois Tigeot Approved by: maintainer (Jeremy Chadwick) Modified: head/sysutils/mcelog/files/patch-config.c Modified: head/sysutils/mcelog/files/patch-config.c ============================================================================== --- head/sysutils/mcelog/files/patch-config.c Mon Nov 3 06:19:37 2014 (r372094) +++ head/sysutils/mcelog/files/patch-config.c Mon Nov 3 06:58:45 2014 (r372095) @@ -1,5 +1,5 @@ ---- config.c.orig 2010-01-20 18:36:52.000000000 -0800 -+++ config.c 2012-09-22 02:32:52.718116009 -0700 +--- config.c.orig 2010-01-21 02:36:52 UTC ++++ config.c @@ -18,6 +18,9 @@ Author: Andi Kleen */ @@ -10,29 +10,7 @@ #include <stdio.h> #include <string.h> #include <ctype.h> -@@ -127,6 +130,21 @@ - return s; - } - -+#if defined(__FreeBSD__) && __FreeBSD_version < 800067 -+/* Provide a stub getline() for older versions of FreeBSD. */ -+static ssize_t getline(char **cp, size_t *lenp, FILE *f) -+{ -+ -+ if (*cp == NULL) { -+ *cp = malloc(4096); -+ *lenp = 4096; -+ } -+ if (fgets(*cp, *lenp, f) == NULL) -+ return (0); -+ return (strlen(*cp)); -+} -+#endif -+ - int parse_config_file(const char *fn) - { - FILE *f; -@@ -304,7 +322,12 @@ +@@ -304,7 +307,12 @@ int config_trigger(const char *header, c s = config_string(header, name); if (s) { /* no $PATH */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411030658.sA36wjNk013159>