Begin port to GNU/kFreeBSD
This is just a minimal port to get Debian up and running; the rest will be done later.
This commit is contained in:
parent
579838d2e7
commit
766d71c2d3
11
etc/rc.conf.GNU-kFreeBSD
Normal file
11
etc/rc.conf.GNU-kFreeBSD
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
##############################################################################
|
||||||
|
# GNU/kFreeBSD SPECIFIC OPTIONS
|
||||||
|
|
||||||
|
# This is the subsystem type. Valid options on GNU/kFreeBSD:
|
||||||
|
# "" - nothing special
|
||||||
|
# "jail" - FreeBSD jails (not yet implemented)
|
||||||
|
# If this is commented out, automatic detection will be used.
|
||||||
|
#
|
||||||
|
# This should be set to the value representing the environment this file is
|
||||||
|
# PRESENTLY in, not the virtualization the environment is capable of.
|
||||||
|
#rc_sys=""
|
9
mk/os-GNU-kFreeBSD.mk
Normal file
9
mk/os-GNU-kFreeBSD.mk
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
||||||
|
# Released under the 2-clause BSD license.
|
||||||
|
|
||||||
|
# Generic definitions
|
||||||
|
|
||||||
|
CPPFLAGS+= -D_BSD_SOURCE -D_XOPEN_SOURCE=700
|
||||||
|
LIBDL= -Wl,-Bdynamic -ldl
|
||||||
|
LIBKVM?=
|
||||||
|
include ${MK}/os-BSD.mk
|
2
mk/os.mk
2
mk/os.mk
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# Generic definitions
|
# Generic definitions
|
||||||
|
|
||||||
_OS_SH= uname -s
|
_OS_SH= uname -s | tr '/' '-'
|
||||||
_OS:= $(shell ${_OS_SH})
|
_OS:= $(shell ${_OS_SH})
|
||||||
OS?= ${_OS}
|
OS?= ${_OS}
|
||||||
include ${MK}/os-${OS}.mk
|
include ${MK}/os-${OS}.mk
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#include "librc.h"
|
#include "librc.h"
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__) || defined (__GLIBC__)
|
||||||
static bool
|
static bool
|
||||||
pid_is_exec(pid_t pid, const char *exec)
|
pid_is_exec(pid_t pid, const char *exec)
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
# include <sys/statvfs.h>
|
# include <sys/statvfs.h>
|
||||||
# define statfs statvfs
|
# define statfs statvfs
|
||||||
# define F_FLAGS f_flag
|
# define F_FLAGS f_flag
|
||||||
#elif defined (__linux__)
|
#elif defined (__linux__) || defined (__GLIBC__)
|
||||||
# include <mntent.h>
|
# include <mntent.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -265,7 +265,7 @@ find_mounts(struct args *args)
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined (__linux__)
|
#elif defined (__linux__) || defined (__GLIBC__)
|
||||||
static struct mntent *
|
static struct mntent *
|
||||||
getmntfile(const char *file)
|
getmntfile(const char *file)
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifdef __linux__
|
#if defined(__linux__) || defined(__GLIBC__)
|
||||||
# include <pty.h>
|
# include <pty.h>
|
||||||
#elif defined(__NetBSD__) || defined(__OpenBSD__)
|
#elif defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
# include <util.h>
|
# include <util.h>
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifdef __linux__
|
#if defined(__linux__) || defined(__GLIBC__)
|
||||||
# include <pty.h>
|
# include <pty.h>
|
||||||
#elif defined(__NetBSD__) || defined(__OpenBSD__)
|
#elif defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
# include <util.h>
|
# include <util.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user