FTBFS on GNU/kFreeBSD (Closes: #374841).
Gbp-Pq: Name 04-kfreebsd.patch
This commit is contained in:
parent
36b3143917
commit
40c084cbce
|
@ -14,6 +14,7 @@ ifelse(substr(OS,0,7),[MINGW32],[define([OS],[MINGW32])])
|
||||||
ifelse(OS,NetBSD,[define([OS],[BSD])CXXFLAGS+=-D__unix])
|
ifelse(OS,NetBSD,[define([OS],[BSD])CXXFLAGS+=-D__unix])
|
||||||
ifelse(OS,OpenBSD,[define([OS],[BSD])])
|
ifelse(OS,OpenBSD,[define([OS],[BSD])])
|
||||||
ifelse(OS,FreeBSD,[define([OS],[BSD])LDLIBS=-lcam])
|
ifelse(OS,FreeBSD,[define([OS],[BSD])LDLIBS=-lcam])
|
||||||
|
ifelse(OS,GNU/kFreeBSD,[define([OS],[Linux])LDLIBS=-lcam])
|
||||||
ifelse(OS,IRIX64,[define([OS],[IRIX])])
|
ifelse(OS,IRIX64,[define([OS],[IRIX])])
|
||||||
|
|
||||||
ifelse(OS,Darwin,[
|
ifelse(OS,Darwin,[
|
||||||
|
@ -188,7 +189,7 @@ CC =gcc
|
||||||
CFLAGS +=$(WARN) -O2 -D_REENTRANT
|
CFLAGS +=$(WARN) -O2 -D_REENTRANT
|
||||||
CXX =g++
|
CXX =g++
|
||||||
CXXFLAGS+=$(WARN) -O2 -fno-exceptions -D_REENTRANT
|
CXXFLAGS+=$(WARN) -O2 -fno-exceptions -D_REENTRANT
|
||||||
LDLIBS =-lpthread
|
LDLIBS +=-lpthread
|
||||||
LINK.o =$(LINK.cc)
|
LINK.o =$(LINK.cc)
|
||||||
|
|
||||||
prefix?=/usr/local
|
prefix?=/usr/local
|
||||||
|
|
|
@ -403,7 +403,7 @@
|
||||||
#define _LARGEFILE64_SOURCE
|
#define _LARGEFILE64_SOURCE
|
||||||
#define _FILE_OFFSET_BITS 64
|
#define _FILE_OFFSET_BITS 64
|
||||||
|
|
||||||
#if defined(__linux)
|
#if defined(__linux) || defined(__GLIBC__)
|
||||||
/* ... and "engage" glibc large file support */
|
/* ... and "engage" glibc large file support */
|
||||||
# ifndef _GNU_SOURCE
|
# ifndef _GNU_SOURCE
|
||||||
# define _GNU_SOURCE
|
# define _GNU_SOURCE
|
||||||
|
@ -459,7 +459,7 @@
|
||||||
# define FATAL_START(e) (0x80|(e))
|
# define FATAL_START(e) (0x80|(e))
|
||||||
# define FATAL_MASK 0x7F
|
# define FATAL_MASK 0x7F
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
|
||||||
# include <sys/syscall.h>
|
# include <sys/syscall.h>
|
||||||
# ifndef SYS_mlockall
|
# ifndef SYS_mlockall
|
||||||
# define SYS_mlockall 324
|
# define SYS_mlockall 324
|
||||||
|
@ -995,7 +995,7 @@ char *setup_fds (char *device)
|
||||||
goto open_rw;
|
goto open_rw;
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__) || defined (__FreeBSD_kernel__)
|
||||||
|
|
||||||
#include <sys/cdio.h>
|
#include <sys/cdio.h>
|
||||||
#include <camlib.h>
|
#include <camlib.h>
|
||||||
|
@ -2937,7 +2937,7 @@ int main (int argc, char *argv[])
|
||||||
if (setrlimit(RLIMIT_MEMLOCK,&rlim)) break;
|
if (setrlimit(RLIMIT_MEMLOCK,&rlim)) break;
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
# ifdef __FreeBSD__
|
# if defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
|
||||||
syscall(SYS_mlockall,3);
|
syscall(SYS_mlockall,3);
|
||||||
# else
|
# else
|
||||||
mlockall(MCL_CURRENT|MCL_FUTURE);
|
mlockall(MCL_CURRENT|MCL_FUTURE);
|
||||||
|
|
|
@ -483,7 +483,7 @@ public:
|
||||||
{ return 1; }
|
{ return 1; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||||
|
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <camlib.h>
|
#include <camlib.h>
|
||||||
|
|
Loading…
Reference in New Issue