DragonFly: fix build
Fix the build for DragonFlyBSD.
This commit is contained in:
@@ -38,6 +38,9 @@ extern "C" {
|
||||
# define _ALL_SOURCE
|
||||
# undef HAS_SYS_TERMIOS
|
||||
#endif
|
||||
#if defined(__DragonFly__)
|
||||
# undef HAS_SYS_TERMIOS
|
||||
#endif
|
||||
#define _LARGEFILE64_SOURCE 1
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
#define __USE_POSIX 1 //needed for sigjmp_buf in glibc setjmp.h
|
||||
|
||||
@@ -12,6 +12,10 @@
|
||||
#if defined(__FreeBSD_version) && __FreeBSD_version >= 800000
|
||||
#include <fs/nfs/rpcv2.h>
|
||||
#include <fs/nfs/nfsproto.h>
|
||||
# elif defined(__DragonFly__)
|
||||
#include <vfs/nfs/rpcv2.h>
|
||||
#include <vfs/nfs/nfsproto.h>
|
||||
# elif defined(__DragonFly__)
|
||||
# else
|
||||
#include <nfs/rpcv2.h>
|
||||
#include <nfs/nfsproto.h>
|
||||
@@ -21,6 +25,8 @@
|
||||
# ifndef MNT_NODEV
|
||||
# define MNT_NODEV 0
|
||||
# endif
|
||||
#elif defined(__DragonFly__)
|
||||
# include <vfs/nfs/nfs.h>
|
||||
#else
|
||||
# include <nfs/nfs.h>
|
||||
#endif
|
||||
|
||||
@@ -30,8 +30,8 @@ struct PtraceRegs
|
||||
int pid;
|
||||
};
|
||||
|
||||
static int ptracerw(Map*, Seg*, ulong, void*, uint, int);
|
||||
static int ptraceregrw(Regs*, char*, ulong*, int);
|
||||
static int ptracerw(Map*, Seg*, uvlong, void*, uint, int);
|
||||
static int ptraceregrw(Regs*, char*, uvlong*, int);
|
||||
|
||||
void
|
||||
unmapproc(Map *map)
|
||||
@@ -92,7 +92,7 @@ detachproc(int pid)
|
||||
}
|
||||
|
||||
static int
|
||||
ptracerw(Map *map, Seg *seg, ulong addr, void *v, uint n, int isr)
|
||||
ptracerw(Map *map, Seg *seg, uvlong addr, void *v, uint n, int isr)
|
||||
{
|
||||
int i;
|
||||
u32int u;
|
||||
@@ -167,7 +167,7 @@ reg2freebsd(char *reg)
|
||||
}
|
||||
|
||||
static int
|
||||
ptraceregrw(Regs *regs, char *name, ulong *val, int isr)
|
||||
ptraceregrw(Regs *regs, char *name, uvlong *val, int isr)
|
||||
{
|
||||
int pid;
|
||||
ulong addr;
|
||||
|
||||
Reference in New Issue
Block a user