From 8faf23de0b534a19555691e8ba111dcde8f02af3 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Wed, 3 Aug 2011 14:02:37 -0400 Subject: [PATCH] libselinux: audit2why: work around python bug not defining SIZEOF_SOCKET_T A at least one broken python headers didn't define SIZEOF_SOCKET_T. Define it if we happen upon one of those. Signed-off-by: Eric Paris Acked-by: Dan Walsh --- libselinux/src/audit2why.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libselinux/src/audit2why.c b/libselinux/src/audit2why.c index b9376065..62ba02c5 100644 --- a/libselinux/src/audit2why.c +++ b/libselinux/src/audit2why.c @@ -1,3 +1,8 @@ +/* Workaround for http://bugs.python.org/issue4835 */ +#ifndef SIZEOF_SOCKET_T +#define SIZEOF_SOCKET_T SIZEOF_INT +#endif + #include #include #include