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>
This commit is contained in:
Eric Paris 2011-08-03 14:02:37 -04:00
parent 4ad1896954
commit 8faf23de0b
1 changed files with 5 additions and 0 deletions

View File

@ -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>