ladybird/Ports/python-3.6/patches/0004-Remove-wrong-ifdef.patch
Emanuel Sprung 71823a6c49 Ports: Add initial Python 3.6 port
This port is experimental and not all pythom modules are working.
But this is an initial shot which can be further worked on, as
SerenityOS gets more mature. :^)

The main limitation is that locales, threading and time related
functions are not working.
2019-11-11 22:04:16 +01:00

26 lines
584 B
Diff

diff --git a/Python/pytime.c b/Python/pytime.c
index 07335d4..50d676a 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -225,7 +225,7 @@ _PyTime_FromNanoseconds(long long ns)
return t;
}
-#ifdef HAVE_CLOCK_GETTIME
+
static int
_PyTime_FromTimespec(_PyTime_t *tp, struct timespec *ts, int raise)
{
@@ -247,7 +247,8 @@ _PyTime_FromTimespec(_PyTime_t *tp, struct timespec *ts, int raise)
*tp = t;
return res;
}
-#elif !defined(MS_WINDOWS)
+
+#if !defined(MS_WINDOWS)
static int
_PyTime_FromTimeval(_PyTime_t *tp, struct timeval *tv, int raise)
{
--
2.17.1