[Python-checkins] gh-107279 Add `<stddef.h>` to `Modules/zlibmodule.c` to fix failing builds (#107280)
kumaraditya303
webhook-mailer at python.org
Thu Jul 27 02:56:43 EDT 2023
https://github.com/python/cpython/commit/4b2e54bd3c23da37923a18ae5e82cfd574e9a439
commit: 4b2e54bd3c23da37923a18ae5e82cfd574e9a439
branch: main
author: shailshouryya <42100758+shailshouryya at users.noreply.github.com>
committer: kumaraditya303 <kumaraditya at python.org>
date: 2023-07-27T12:26:39+05:30
summary:
gh-107279 Add `<stddef.h>` to `Modules/zlibmodule.c` to fix failing builds (#107280)
files:
M Modules/zlibmodule.c
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index 22da50989a88d..a98a37adadcff 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -7,6 +7,7 @@
#include "zlib.h"
#include "stdbool.h"
+#include <stddef.h> // offsetof()
#if defined(ZLIB_VERNUM) && ZLIB_VERNUM < 0x1221
#error "At least zlib version 1.2.2.1 is required"
More information about the Python-checkins
mailing list