File: time64.patch

package info (click to toggle)
boinc 8.2.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 110,632 kB
  • sloc: cpp: 178,901; php: 115,537; pascal: 56,058; ansic: 49,303; xml: 17,863; python: 8,756; javascript: 6,538; sh: 5,800; makefile: 2,254; objc: 1,867; perl: 1,843; sql: 831; java: 429; lisp: 47; csh: 30
file content (93 lines) | stat: -rw-r--r-- 2,838 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
diff --git a/client/client_types.cpp b/client/client_types.cpp
index afe9aa9d1..3384506fb 100644
--- a/client/client_types.cpp
+++ b/client/client_types.cpp
@@ -22,15 +22,6 @@
 #include "zlib.h"
 #else
 #include "config.h"
-// Somehow having config.h define _FILE_OFFSET_BITS or _LARGE_FILES is
-// causing open to be redefined to open64 which somehow, in some versions
-// of zlib.h causes gzopen to be redefined as gzopen64 which subsequently gets
-// reported as a linker error.  So for this file, we compile in small files
-// mode, regardless of these settings
-#undef _FILE_OFFSET_BITS
-#undef _LARGE_FILES
-#undef _LARGEFILE_SOURCE
-#undef _LARGEFILE64_SOURCE
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <zlib.h>
diff --git a/client/hostinfo_unix.cpp b/client/hostinfo_unix.cpp
index cec9401f5..a5a4e3dcb 100644
--- a/client/hostinfo_unix.cpp
+++ b/client/hostinfo_unix.cpp
@@ -25,15 +25,6 @@
 
 #if !defined(_WIN32) || defined(__CYGWIN32__)
 
-// Access to binary files in /proc filesystem doesn't work in the 64bit
-// files environment on some systems.
-// None of the functions here need 64bit file functions,
-// so undefine _FILE_OFFSET_BITS and _LARGE_FILES.
-//
-#undef _FILE_OFFSET_BITS
-#undef _LARGE_FILES
-#undef _LARGEFILE_SOURCE
-#undef _LARGEFILE64_SOURCE
 #include <iostream>
 #include <vector>
 #include <string>
diff --git a/lib/mem_usage.cpp b/lib/mem_usage.cpp
index 8c1b9bf1a..9adbc7d5c 100644
--- a/lib/mem_usage.cpp
+++ b/lib/mem_usage.cpp
@@ -19,15 +19,6 @@
 #include "boinc_win.h"
 #else
 #include "config.h"
-#if HAVE_PROCFS_H
-// Can't use large file calls with solaris procfs.
-#if defined(_FILE_OFFSET_BITS) && ( _FILE_OFFSET_BITS == 64 )
-#undef _FILE_OFFSET_BITS
-#undef _LARGE_FILES
-#undef _LARGEFILE_SOURCE
-#undef _LARGEFILE64_SOURCE
-#endif
-#endif
 #include <cstdio>
 #include <cstring>
 #include <cstdlib>
diff --git a/lib/procinfo_unix.cpp b/lib/procinfo_unix.cpp
index 150906261..48ca7cd75 100644
--- a/lib/procinfo_unix.cpp
+++ b/lib/procinfo_unix.cpp
@@ -20,16 +20,6 @@
 
 #include "config.h"
 
-#if HAVE_PROCFS_H
-// Can't use large file calls with solaris procfs.
-#if defined(_FILE_OFFSET_BITS) && ( _FILE_OFFSET_BITS == 64 )
-#undef _FILE_OFFSET_BITS
-#undef _LARGE_FILES
-#undef _LARGEFILE_SOURCE
-#undef _LARGEFILE64_SOURCE
-#endif
-#endif
-
 #include <cstdio>
 #include <string.h>
 #include <sys/param.h>
diff --git a/samples/gfx_html/mongoose.cpp b/samples/gfx_html/mongoose.cpp
index 85d9fd638..c4f1c9053 100644
--- a/samples/gfx_html/mongoose.cpp
+++ b/samples/gfx_html/mongoose.cpp
@@ -52,7 +52,6 @@
 #ifndef _LARGEFILE_SOURCE
 #define _LARGEFILE_SOURCE       // Enable fseeko() and ftello() functions
 #endif
-#define _FILE_OFFSET_BITS 64    // Enable 64-bit file offsets
 
 #ifdef _MSC_VER
 #pragma warning (disable : 4127)  // FD_SET() emits warning, disable it