File: include-sys-timeb.patch

package info (click to toggle)
python-udatetime 0.0.16-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 232 kB
  • sloc: ansic: 768; python: 536; makefile: 6
file content (25 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Stefano Rivera <stefano@rivera.za.net>
Date: Fri, 16 Oct 2020 21:19:00 -0700
Subject: Explicitly include <sys/timeb.h> for ftime() and struct timeb

Needed to build on Python 3.9.

Bug-Debian: https://bugs.debian.org/972029
Bug-Upstream: https://github.com/freach/udatetime/issues/32
Forwarded: https://github.com/freach/udatetime/pull/33
---
 src/rfc3339.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/rfc3339.c b/src/rfc3339.c
index 1660028..126bbe8 100644
--- a/src/rfc3339.c
+++ b/src/rfc3339.c
@@ -10,6 +10,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/timeb.h>
 #include <time.h>