File: file-offset-bits.patch

package info (click to toggle)
nauty 2.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 100,416 kB
  • sloc: ansic: 125,567; sh: 4,157; makefile: 4,129
file content (20 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Set _FILE_OFFSET_BITS to 64 when _TIME_BITS is 64.
 Otherwise, build fails on some architectures after the t64 transition with
 "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64".
Author: Doug Torrance <dtorrance@debian.org>
Forwarded: not-needed
Last-Update: 2024-04-03

--- a/nauty-h.in
+++ b/nauty-h.in
@@ -96,6 +96,10 @@
 #undef _FILE_OFFSET_BITS
 #endif
 
+#if _TIME_BITS == 64
+#define _FILE_OFFSET_BITS 64
+#endif
+
 /* Support of gcc extensions __builtin_clz, __builtin_clzl, __builtin_clzll */
 #ifndef HAVE_HWLZCNT
 #define HAVE_HWLZCNT @have_hwlzcnt@