diff options
| author | Charles.Forsyth <devnull@localhost> | 2007-04-07 09:48:14 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2007-04-07 09:48:14 +0000 |
| commit | 16298053a2d285f9a06a02f298e389f20ebdc12c (patch) | |
| tree | 6f6c15ee31d9d2b337ac8f8d2801898f2fe66523 /os/port | |
| parent | b5eeadad52f7e620402f85c9606f45be13323b8d (diff) | |
20070407-1047 offsetof changes
Diffstat (limited to 'os/port')
| -rw-r--r-- | os/port/devftl.c | 4 | ||||
| -rwxr-xr-x | os/port/devlogfs.c | 5 |
2 files changed, 1 insertions, 8 deletions
diff --git a/os/port/devftl.c b/os/port/devftl.c index ab24588a..c0ea2816 100644 --- a/os/port/devftl.c +++ b/os/port/devftl.c @@ -32,10 +32,6 @@ #include "kernel.h" -#ifndef offsetof -#define offsetof(s, m) (ulong)(&(((s*)0)->m)) -#endif - typedef struct Ftl Ftl; typedef struct Merase Merase; typedef struct Terase Terase; diff --git a/os/port/devlogfs.c b/os/port/devlogfs.c index 630d3eba..9f892e1a 100755 --- a/os/port/devlogfs.c +++ b/os/port/devlogfs.c @@ -2,6 +2,7 @@ #include "u.h" #include "../port/lib.h" #include "../port/error.h" +#include "mem.h" #else #include "error.h" #endif @@ -16,10 +17,6 @@ #define Wakeup wakeup #endif -#ifndef offsetof -#define offsetof(T,X) ((ulong)&(((T*)0)->X)) -#endif - typedef struct Devlogfs Devlogfs; typedef struct DevlogfsSession DevlogfsSession; |
