aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/src/audit2why.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2011-08-03 14:02:37 -0400
committerEric Paris <eparis@redhat.com>2011-08-11 23:35:52 -0400
commit8faf23de0b534a19555691e8ba111dcde8f02af3 (patch)
tree9b263529320050119ca25e775287916b659cbcec /libselinux/src/audit2why.c
parent4ad18969546c16bd78206799de642af6eb2293ea (diff)
downloadandroid_external_selinux-8faf23de0b534a19555691e8ba111dcde8f02af3.tar.gz
android_external_selinux-8faf23de0b534a19555691e8ba111dcde8f02af3.tar.bz2
android_external_selinux-8faf23de0b534a19555691e8ba111dcde8f02af3.zip
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 <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libselinux/src/audit2why.c')
-rw-r--r--libselinux/src/audit2why.c5
1 files changed, 5 insertions, 0 deletions
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 <Python.h>
#include <unistd.h>
#include <stdlib.h>