From a28d2d412819a5d2f996fc5454eb7d809e8537d2 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 11 Jun 2023 14:05:02 -0600 Subject: [PATCH] Python may be built with 32-bit time_t support on 32-bit platforms. We need to undef the SIZEOF_TIME_T from pyconfig.h so it does not conflict with our own. --- plugins/python/pyhelpers.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/python/pyhelpers.h b/plugins/python/pyhelpers.h index 5448e1d48..6ab7c4984 100644 --- a/plugins/python/pyhelpers.h +++ b/plugins/python/pyhelpers.h @@ -22,6 +22,9 @@ #define PY_SSIZE_T_CLEAN #include +/* Python may be built with 32-bit time_t support on some platforms. */ +#undef SIZEOF_TIME_T + #include #include "sudo_compat.h" #include "sudo_plugin.h"