summaryrefslogtreecommitdiffstats
path: root/debian/patches/hurd-i386-storage_connect_ioapi.h.patch
blob: 75cd7dfa5698f9e841734bff6d8afac33568e092 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Forwarded: no
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069094
Author: Svante Signell <svante.signell@gmail.com>
Subject: Bug#1069094: mariadb: FTBFS on hurd-i386

Add Hurd to define __USE_FILE_OFFSET64 et al.

--- a/storage/connect/ioapi.h
+++ b/storage/connect/ioapi.h
@@ -21,9 +21,10 @@
 #ifndef _ZLIBIOAPI64_H
 #define _ZLIBIOAPI64_H
 
-#if defined(__linux__)
+#if defined(__linux__) || defined (__GNU__)
 
-  // Linux needs this to support file operation on files larger then 4+GB
+  // Linux and Hurd needs this to support file operation on files larger
+  // than 4+GB.
   // But might need better if/def to select just the platforms that needs them.
 
         #ifndef __USE_FILE_OFFSET64