From 7d4a26663a812c383738fc6390759266851cf953 Mon Sep 17 00:00:00 2001 From: Bryan Forbes Date: Thu, 13 May 2010 09:41:12 -0500 Subject: Python bindings for new sync interface. --- cython/stdint.pxi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cython/stdint.pxi') diff --git a/cython/stdint.pxi b/cython/stdint.pxi index 2617dec..f9e5e95 100644 --- a/cython/stdint.pxi +++ b/cython/stdint.pxi @@ -4,9 +4,15 @@ cdef extern from *: ctypedef unsigned short int uint16_t ctypedef unsigned int uint32_t ctypedef int int32_t + ctypedef long int time_t IF UNAME_MACHINE == 'x86_64': ctypedef long int int64_t ctypedef unsigned long int uint64_t ELSE: ctypedef long long int int64_t ctypedef unsigned long long int uint64_t + +cdef extern from "time.h": + cdef struct timeval: + time_t tv_sec + time_t tv_usec -- cgit v1.1-32-gdbae