FreeBSD Bugzilla – Attachment 148957 Details for
Bug 194767
[PATCH] sysutils/mcelog contains a patch adding code for an obsolete FreeBSD version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch relative to the port directory
patch-mcelog.txt (text/plain), 1.06 KB, created by
ftigeot
on 2014-11-02 19:40:05 UTC
(
hide
)
Description:
Patch relative to the port directory
Filename:
MIME Type:
Creator:
ftigeot
Created:
2014-11-02 19:40:05 UTC
Size:
1.06 KB
patch
obsolete
>Index: files/patch-config.c >=================================================================== >--- files/patch-config.c (revision 372084) >+++ files/patch-config.c (working copy) >@@ -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 */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194767
:
148951
| 148957