Debian Codegraph @

debian/patches/30-hurd-kfreebsd-ftbfs.patch

raw symbols SCIP
1 Fromscip-debian debian dvdisaster 0.79.10-3.1 dvdisaster/patches/`30-hurd-kfreebsd-ftbfs.patch`#From.: Carlos Maddela <[email protected]scip-debian . . . identity/`[email protected]`.>
2 Datescip-debian debian dvdisaster 0.79.10-3.1 dvdisaster/patches/`30-hurd-kfreebsd-ftbfs.patch`#Date.: Sun, 6 Aug 2017 02:40:33 +1000
3 Subjectscip-debian debian dvdisaster 0.79.10-3.1 dvdisaster/patches/`30-hurd-kfreebsd-ftbfs.patch`#Subject.: Fix FTBFS on Hurd and kFreeBSD.
4
5 Description: Fix FTBFS on Hurd and kFreeBSD.
6 Make sure MMAP_FLAGS gets defined.
7 Author: Carlos Maddela <[email protected]>
8 Last-Update: 2017-08-06
9 ---
10 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
11 ---
12 rs03-create.c | 19 +++++++++++--------
13 1 file changed, 11 insertions(+), 8 deletions(-)
14
15 diff --git a/rs03-create.cscip-debian debian dvdisaster 0.79.10-3.1 dvdisaster/upstream/`rs03-create.c`: b/rs03-create.cscip-debian debian dvdisaster 0.79.10-3.1 dvdisaster/upstream/`rs03-create.c`:
16 index b2c6033..b14e326 100644
17 --- a/rs03-create.c
18 +++ b/rs03-create.c
19 @@ -39,16 +39,19 @@
20 #ifdef HAVE_MMAP
21 #include <sys/mman.h>
22
23 -#ifdef SYS_LINUX
24 - #define MMAP_FLAGS (MAP_SHARED | MAP_POPULATE | MAP_NORESERVE)
25 -#endif
26 +#if defined(SYS_LINUX)
27
28 -#ifdef SYS_FREEBSD
29 - #define MMAP_FLAGS (MAP_SHARED | MAP_PREFAULT_READ)
30 -#endif
31 + #define MMAP_FLAGS (MAP_SHARED | MAP_POPULATE | MAP_NORESERVE)
32 +
33 +#elif defined(SYS_FREEBSD)
34 +
35 + #define MMAP_FLAGS (MAP_SHARED | MAP_PREFAULT_READ)
36 +
37 +#else
38 +
39 + /* SYS_NETBSD and others. */
40 + #define MMAP_FLAGS (MAP_SHARED)
41
42 -#ifdef SYS_NETBSD
43 - #define MMAP_FLAGS (MAP_SHARED)
44 #endif
45
46 #endif