Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/809063/?format=api
{ "id": 809063, "url": "http://patchwork.ozlabs.org/api/patches/809063/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1504361702-30266-1-git-send-email-greearb@candelatech.com/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api", "name": "Linux network development", "link_name": "netdev", "list_id": "netdev.vger.kernel.org", "list_email": "netdev@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1504361702-30266-1-git-send-email-greearb@candelatech.com>", "list_archive_url": null, "date": "2017-09-02T14:15:02", "name": "Fix build on fedora-14 (and other older systems)", "commit_ref": null, "pull_url": null, "state": "rejected", "archived": true, "hash": "8fa4b2630b4a836f72529b237610a23a3967c82c", "submitter": { "id": 852, "url": "http://patchwork.ozlabs.org/api/people/852/?format=api", "name": "Ben Greear", "email": "greearb@candelatech.com" }, "delegate": { "id": 389, "url": "http://patchwork.ozlabs.org/api/users/389/?format=api", "username": "shemminger", "first_name": "stephen", "last_name": "hemminger", "email": "shemminger@vyatta.com" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/1504361702-30266-1-git-send-email-greearb@candelatech.com/mbox/", "series": [ { "id": 1151, "url": "http://patchwork.ozlabs.org/api/series/1151/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=1151", "date": "2017-09-02T14:15:02", "name": "Fix build on fedora-14 (and other older systems)", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/1151/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/809063/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/809063/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<netdev-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@ozlabs.org", "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xkynQ17Tcz9sNr\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSun, 3 Sep 2017 00:15:37 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752677AbdIBOPI (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tSat, 2 Sep 2017 10:15:08 -0400", "from mail2.candelatech.com ([208.74.158.173]:51838 \"EHLO\n\tmail2.candelatech.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752649AbdIBOPI (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Sat, 2 Sep 2017 10:15:08 -0400", "from ben-dt3.candelatech.com (firewall.candelatech.com\n\t[50.251.239.81])\n\tby mail2.candelatech.com (Postfix) with ESMTP id C461A40A5C4;\n\tSat, 2 Sep 2017 07:15:07 -0700 (PDT)" ], "From": "greearb@candelatech.com", "To": "netdev@vger.kernel.org", "Cc": "Ben Greear <greearb@candelatech.com>", "Subject": "[PATCH] Fix build on fedora-14 (and other older systems)", "Date": "Sat, 2 Sep 2017 07:15:02 -0700", "Message-Id": "<1504361702-30266-1-git-send-email-greearb@candelatech.com>", "X-Mailer": "git-send-email 2.4.11", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "From: Ben Greear <greearb@candelatech.com>\n\nSeems Fedora-20 and below fail, hopefully this fixes\nthem.\n\nSigned-off-by: Ben Greear <greearb@candelatech.com>\n---\n include/linux/sysinfo.h | 8 ++++++++\n ip/ipxfrm.c | 1 +\n ip/xfrm_policy.c | 1 +\n ip/xfrm_state.c | 1 +\n 4 files changed, 11 insertions(+)", "diff": "diff --git a/include/linux/sysinfo.h b/include/linux/sysinfo.h\nindex 934335a..3596b02 100644\n--- a/include/linux/sysinfo.h\n+++ b/include/linux/sysinfo.h\n@@ -3,6 +3,14 @@\n \n #include <linux/types.h>\n \n+/* So we can compile on older OSs, hopefully this is correct. --Ben */\n+#ifndef __kernel_long_t\n+typedef long __kernel_long_t;\n+#endif\n+#ifndef __kernel_ulong_t\n+typedef unsigned long __kernel_ulong_t;\n+#endif\n+\n #define SI_LOAD_SHIFT\t16\n struct sysinfo {\n \t__kernel_long_t uptime;\t\t/* Seconds since boot */\ndiff --git a/ip/ipxfrm.c b/ip/ipxfrm.c\nindex 12c2f72..492a6af 100644\n--- a/ip/ipxfrm.c\n+++ b/ip/ipxfrm.c\n@@ -38,6 +38,7 @@\n #include \"utils.h\"\n #include \"xfrm.h\"\n #include \"ip_common.h\"\n+#include \"xtables.h\"\n \n #define STRBUF_SIZE\t(128)\n \ndiff --git a/ip/xfrm_policy.c b/ip/xfrm_policy.c\nindex de689c4..0f957c1 100644\n--- a/ip/xfrm_policy.c\n+++ b/ip/xfrm_policy.c\n@@ -32,6 +32,7 @@\n #include \"utils.h\"\n #include \"xfrm.h\"\n #include \"ip_common.h\"\n+#include \"xtables.h\"\n \n /* #define NLMSG_DELETEALL_BUF_SIZE (4096-512) */\n #define NLMSG_DELETEALL_BUF_SIZE 8192\ndiff --git a/ip/xfrm_state.c b/ip/xfrm_state.c\nindex 4483fb8..5a6a895 100644\n--- a/ip/xfrm_state.c\n+++ b/ip/xfrm_state.c\n@@ -31,6 +31,7 @@\n #include \"utils.h\"\n #include \"xfrm.h\"\n #include \"ip_common.h\"\n+#include \"xtables.h\"\n \n /* #define NLMSG_DELETEALL_BUF_SIZE (4096-512) */\n #define NLMSG_DELETEALL_BUF_SIZE 8192\n", "prefixes": [] }