Add api_version.
Moved #define DEBUG after the lock.h include, as it wants to find lots of header I'm too lazy to track. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21019 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
232467aa4e
commit
ec8bd525ca
@ -16,6 +16,8 @@
|
||||
#define MAX_FMAPS 4
|
||||
#define DEVNAME_FMT "disk/virtual/fmap/%2d"
|
||||
|
||||
int32 api_version = B_CUR_DRIVER_API_VERSION;
|
||||
|
||||
status_t
|
||||
init_hardware (void)
|
||||
{
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <ksocket.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#define DEBUG 1
|
||||
//#define DEBUG 1
|
||||
|
||||
/* on the first open(), open ourselves for some seconds,
|
||||
* to avoid trying to reconnect and failing on a 2nd open,
|
||||
@ -48,6 +48,8 @@
|
||||
#define benaphore_unlock UNLOCK
|
||||
#endif
|
||||
|
||||
#define DEBUG 1
|
||||
|
||||
#include "nbd.h"
|
||||
|
||||
#define DRV "nbd"
|
||||
@ -736,9 +738,10 @@ device_hooks nbd_hooks={
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
#pragma mark ==== driver hooks ====
|
||||
|
||||
int32 api_version = B_CUR_DRIVER_API_VERSION;
|
||||
|
||||
static char *nbd_name[MAX_NBDS+1] = {
|
||||
NULL
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user