diff options
author | Erik Troan <ewt@redhat.com> | 2001-11-13 21:05:52 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-11-13 21:05:52 +0000 |
commit | 0c9da29f6bad397e0a0aa45d10271946145d6adb (patch) | |
tree | b1acd169a7b86f0445b7d9ef3cff9b6ef92775f1 /isys | |
parent | 645147f606192a7f9c1825a339213a20862bb089 (diff) | |
download | anaconda-0c9da29f6bad397e0a0aa45d10271946145d6adb.tar.gz anaconda-0c9da29f6bad397e0a0aa45d10271946145d6adb.tar.xz anaconda-0c9da29f6bad397e0a0aa45d10271946145d6adb.zip |
changes for diet
Diffstat (limited to 'isys')
-rw-r--r-- | isys/nfsmount.h | 6 | ||||
-rw-r--r-- | isys/pdc.c | 14 | ||||
-rw-r--r-- | isys/smp.c | 6 |
3 files changed, 26 insertions, 0 deletions
diff --git a/isys/nfsmount.h b/isys/nfsmount.h index 425f5dd90..0324d2f69 100644 --- a/isys/nfsmount.h +++ b/isys/nfsmount.h @@ -59,6 +59,12 @@ extern bool_t xdr_fhandle(XDR *, fhandle); bool_t xdr_fhandle(); #endif /* Old Style C */ +#ifdef DIET +typedef unsigned int u_int; +typedef unsigned char u_char; +typedef unsigned long u_long; +typedef void * caddr_t; +#endif typedef struct { u_int fhandle3_len; diff --git a/isys/pdc.c b/isys/pdc.c index cf6e9a4c9..4ecbb7ccb 100644 --- a/isys/pdc.c +++ b/isys/pdc.c @@ -9,10 +9,24 @@ #include <stdio.h> #include <fcntl.h> #include <linux/hdreg.h> + +#ifdef DIET +#include <sys/mount.h> +#else #include <linux/fs.h> +#endif + #include <string.h> + +#ifdef DIET +typedef char char16_t; +typedef unsigned char u_int8_t; +typedef unsigned short u_int16_t; +typedef uint32_t u_int32_t; +#else typedef unsigned int uint32_t; +#endif struct promise_raid_conf { char promise_id[24]; diff --git a/isys/smp.c b/isys/smp.c index 65ff2f702..3aa97997e 100644 --- a/isys/smp.c +++ b/isys/smp.c @@ -14,6 +14,12 @@ #include <string.h> #include <errno.h> +#ifdef DIET +typedef unsigned short u_short; +typedef unsigned long u_long; +typedef unsigned int u_int; +#endif + #ifdef __alpha__ int alphaDetectSMP(void) { |