Show a patch.

GET /api/patches/20754/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 20754,
    "url": "https://patchwork.libcamera.org/api/patches/20754/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/20754/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20240804060400.2790695-1-slyich@gmail.com>",
    "date": "2024-08-04T06:03:59",
    "name": "[1/2] include/libcamera/base/file.h: add missing <stdint.h> include",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "07fe56a9511a67a41f98cdfb4e3998189e71cb68",
    "submitter": {
        "id": 203,
        "url": "https://patchwork.libcamera.org/api/people/203/?format=api",
        "name": "Sergei Trofimovich",
        "email": "slyich@gmail.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/20754/mbox/",
    "series": [
        {
            "id": 4479,
            "url": "https://patchwork.libcamera.org/api/series/4479/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4479",
            "date": "2024-08-04T06:03:59",
            "name": "[1/2] include/libcamera/base/file.h: add missing <stdint.h> include",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/4479/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/20754/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/20754/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 08936C323E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSun,  4 Aug 2024 10:59:42 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 191B663383;\n\tSun,  4 Aug 2024 12:59:41 +0200 (CEST)",
            "from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com\n\t[IPv6:2a00:1450:4864:20::32a])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 3F69A6192D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun,  4 Aug 2024 08:04:34 +0200 (CEST)",
            "by mail-wm1-x32a.google.com with SMTP id\n\t5b1f17b1804b1-426526d30aaso63020075e9.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 03 Aug 2024 23:04:34 -0700 (PDT)",
            "from nz.home (host51-14-2-49.range51-14.btcentralplus.com.\n\t[51.14.2.49]) by smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-428e6e0357asm87717695e9.12.2024.08.03.23.04.32\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tSat, 03 Aug 2024 23:04:32 -0700 (PDT)",
            "by nz.home (Postfix, from userid 1000)\n\tid CB4661ECC58D27; Sun, 04 Aug 2024 07:04:31 +0100 (BST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"fQpH2QCB\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20230601; t=1722751473; x=1723356273;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=XpP4hXJnRS3ggHaoO9K8AxIJSiHCgaxZIzjuq1F8dR8=;\n\tb=fQpH2QCBwbZ/8J9PUmCQM8Xz67762ixxYMdRGa7SXQLoseNIEPahPmcKixRKQ7f0nC\n\tlRCpCWKl6L+RLvyd2t8VS0qgd/nNyv8fEB+AUXxXrk0hKRDVbX9Q6ea3hPc8sl3kYp4C\n\t86WFWeHAKQh6NrtrDi/mSmgOZYT5oz9m3fR9yxLzxxl9h2Lmiopmxzcu1WLKNGZbt1C+\n\tLQahMRgd/4x8pF1c3eaTAxyQK/abD0fjdAG8GDyVmg8rt2v56HR+362vi3CpaX7q2gKQ\n\t3QP2TAxkT1njZ+m2nV0bJBocO8RzL5jFyKbN1gZLLlPuNx6c5fOrGc6y31VSNTp5+2Ty\n\t9gxA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1722751473; x=1723356273;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n\t:reply-to;\n\tbh=XpP4hXJnRS3ggHaoO9K8AxIJSiHCgaxZIzjuq1F8dR8=;\n\tb=K0heBHlQiH+lU6m9lEsNu4MHsBg0Of6qGDsyOHU5H2csempeaePR4bba4GyB5S3DGA\n\t53phprR0VCZXE/28yobEKfZANZg1lK7TfhxIRTFIDviO8Vpvji7Enzv3pMaejGPJKyux\n\t9wfBOZl5IsMB1VF41RL/Hl9PCbxzMqNCjnYyITv+DSkV47BUpEDjmL8v/T2xost12oRO\n\tvE5LN3xen4OL1+f4qgufwiP2vPTJGRR9y/LWP9XRTsXRONyqkEdcNdFnDa8i7ZWyMHPR\n\t0cnhQdJ5o6LfLAqnuEY9XPmRkIvesnGBFjnrmFX5NGlVzP4gbYAUZebyQoRR/AfkoH01\n\tMgFQ==",
        "X-Gm-Message-State": "AOJu0YxA2mSqNVQd3x0lqjCaCdkFYd03zon89HkfN4P9XdmHtNQyIdWi\n\twFEqLKWm/Eh6NqAdO+uFjDaL9MqwT1KPLqvbGVXJ7XzZkQh71Ycu",
        "X-Google-Smtp-Source": "AGHT+IHP2vvddWZaCL9QXj5jzBwLzVJ9M5GsCMh0/ptBxWgR6zSyOMJv8wnsZ/dmvrIgohFMyg1lRg==",
        "X-Received": "by 2002:a05:600c:350c:b0:426:593c:9351 with SMTP id\n\t5b1f17b1804b1-428e6f866acmr52388685e9.6.1722751473174; \n\tSat, 03 Aug 2024 23:04:33 -0700 (PDT)",
        "From": "Sergei Trofimovich <slyich@gmail.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Sergei Trofimovich <slyich@gmail.com>",
        "Subject": "[PATCH 1/2] include/libcamera/base/file.h: add missing <stdint.h>\n\tinclude",
        "Date": "Sun,  4 Aug 2024 07:03:59 +0100",
        "Message-ID": "<20240804060400.2790695-1-slyich@gmail.com>",
        "X-Mailer": "git-send-email 2.45.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Sun, 04 Aug 2024 12:59:39 +0200",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Without the change the build fails on upcoming `gcc-15` as:\n\n    In file included from ../src/libcamera/base/file.cpp:8:\n    ../include/libcamera/base/file.h:62:33: error: 'uint8_t' was not declared in this scope\n       62 |         ssize_t read(const Span<uint8_t> &data);\n          |                                 ^~~~~~~\n---\n include/libcamera/base/file.h | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/include/libcamera/base/file.h b/include/libcamera/base/file.h\nindex 5637934c..192668ab 100644\n--- a/include/libcamera/base/file.h\n+++ b/include/libcamera/base/file.h\n@@ -7,6 +7,7 @@\n \n #pragma once\n \n+#include <stdint.h>\n #include <sys/types.h>\n \n #include <map>\n",
    "prefixes": [
        "1/2"
    ]
}