summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--isys/nfsmount.h6
-rw-r--r--isys/pdc.c14
-rw-r--r--isys/smp.c6
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)
{