File: arm-t64-redirect-fix.patch

package info (click to toggle)
libcdio 2.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,140 kB
  • sloc: ansic: 39,407; cpp: 2,556; sh: 1,263; makefile: 826; yacc: 324; ruby: 116; perl: 34
file content (27 lines) | stat: -rw-r--r-- 796 bytes parent folder | download
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
26
27
Description: Fix implicit declaration after armhf time_t transition
Author: Zixing Liu <zixing.liu@canonical.com>
Bug: https://github.com/libcdio/libcdio/issues/21

Upstream has an open bug for this issue at:

  https://github.com/libcdio/libcdio/issues/21

---

Index: libcdio/lib/driver/_cdio_stdio.h
===================================================================
--- libcdio.orig/lib/driver/_cdio_stdio.h
+++ libcdio/lib/driver/_cdio_stdio.h
@@ -22,6 +22,12 @@
 
 #include "_cdio_stream.h"
 
+#include <features.h>
+#if defined(_FILE_OFFSET_BITS) && defined(__REDIRECT) && (_FILE_OFFSET_BITS == 64)
+#define lseek64 lseek
+#define fseeko64 fseeko
+#endif
+
 /*!
   Initialize a new stdio stream reading from pathname.
   A pointer to the stream is returned or NULL if there was an error.