freebsd compat. layer: fixed a couple warnings, use KernelStaticLibrary as suggested by Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21089 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
SubDir HAIKU_TOP src add-ons kernel drivers network ipro1000 dev em ;
|
SubDir HAIKU_TOP src add-ons kernel drivers network ipro1000 dev em ;
|
||||||
|
|
||||||
SubDirCcFlags -Wall ;
|
|
||||||
|
|
||||||
UsePrivateHeaders kernel net ;
|
UsePrivateHeaders kernel net ;
|
||||||
|
|
||||||
UseHeaders [ FDirName $(SUBDIR) .. .. ] : true ;
|
UseHeaders [ FDirName $(SUBDIR) .. .. ] : true ;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ UseHeaders [ FDirName $(SUBDIR) compat ] : true ;
|
|||||||
|
|
||||||
SubDirCcFlags [ FDefines _KERNEL=1 KTR=1 ] ;
|
SubDirCcFlags [ FDefines _KERNEL=1 KTR=1 ] ;
|
||||||
|
|
||||||
Library libfreebsd_network.a :
|
KernelStaticLibrary libfreebsd_network.a :
|
||||||
bus.c
|
bus.c
|
||||||
callout.c
|
callout.c
|
||||||
compat.c
|
compat.c
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef _FBSD_COMPAT_SYS_CALLOUT_H_
|
#ifndef _FBSD_COMPAT_SYS_CALLOUT_H_
|
||||||
#define _FBSD_COMPAT_SYS_CALLOUT_H_
|
#define _FBSD_COMPAT_SYS_CALLOUT_H_
|
||||||
|
|
||||||
#include <net_stack.h>
|
#include <sys/haiku-module.h>
|
||||||
|
|
||||||
#include <sys/mutex.h>
|
#include <sys/mutex.h>
|
||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
|
|||||||
@@ -9,6 +9,11 @@
|
|||||||
#define _FBSD_COMPAT_SYS_HAIKU_MODULE_H_
|
#define _FBSD_COMPAT_SYS_HAIKU_MODULE_H_
|
||||||
|
|
||||||
#include <Drivers.h> /* for device_hooks */
|
#include <Drivers.h> /* for device_hooks */
|
||||||
|
#include <KernelExport.h>
|
||||||
|
|
||||||
|
#include <lock.h> /* mutex, recursive_lock for mtx */
|
||||||
|
#include <net_stack.h> /* net_timer, for callout */
|
||||||
|
#undef ASSERT /* private/kernel/debug.h sets it */
|
||||||
|
|
||||||
typedef struct device *device_t;
|
typedef struct device *device_t;
|
||||||
typedef struct devclass *devclass_t;
|
typedef struct devclass *devclass_t;
|
||||||
|
|||||||
@@ -5,8 +5,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <KernelExport.h>
|
#include <sys/haiku-module.h>
|
||||||
|
|
||||||
#include <sys/module.h>
|
#include <sys/module.h>
|
||||||
|
|
||||||
#define hz 1000000LL
|
#define hz 1000000LL
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef _FBSD_COMPAT_SYS_MUTEX_H_
|
#ifndef _FBSD_COMPAT_SYS_MUTEX_H_
|
||||||
#define _FBSD_COMPAT_SYS_MUTEX_H_
|
#define _FBSD_COMPAT_SYS_MUTEX_H_
|
||||||
|
|
||||||
#include <lock.h>
|
#include <sys/haiku-module.h>
|
||||||
|
|
||||||
struct mtx {
|
struct mtx {
|
||||||
int type;
|
int type;
|
||||||
|
|||||||
@@ -1000,7 +1000,7 @@ alloc_bounce_zone(bus_dma_tag_t dmat)
|
|||||||
bz->boundary = dmat->boundary;
|
bz->boundary = dmat->boundary;
|
||||||
snprintf(bz->zoneid, 8, "zone%d", busdma_zonecount);
|
snprintf(bz->zoneid, 8, "zone%d", busdma_zonecount);
|
||||||
busdma_zonecount++;
|
busdma_zonecount++;
|
||||||
snprintf(bz->lowaddrid, 18, "%lx", (uintmax_t)bz->lowaddr);
|
snprintf(bz->lowaddrid, 18, "%llx", (uintmax_t)bz->lowaddr);
|
||||||
STAILQ_INSERT_TAIL(&bounce_zone_list, bz, links);
|
STAILQ_INSERT_TAIL(&bounce_zone_list, bz, links);
|
||||||
dmat->bounce_zone = bz;
|
dmat->bounce_zone = bz;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user