summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--device/buf.h5
-rw-r--r--device/dev_master.h5
-rw-r--r--include/device/tty_status.h5
-rw-r--r--include/mach/version.h5
-rwxr-xr-xipc/ipc_machdep.h4
5 files changed, 24 insertions, 0 deletions
diff --git a/device/buf.h b/device/buf.h
index 80466c8..806eb8d 100644
--- a/device/buf.h
+++ b/device/buf.h
@@ -30,6 +30,9 @@
* Definitions to make new IO structures look like old ones
*/
+#ifndef _DEVICE_BUF_H_
+#define _DEVICE_BUF_H_
+
/*
* io_req and fields
*/
@@ -100,3 +103,5 @@ extern void minphys(io_req_t);
*/
#define biodone iodone
#define biowait iowait
+
+#endif /* _DEVICE_BUF_H_ */
diff --git a/device/dev_master.h b/device/dev_master.h
index 964ae82..6ad1152 100644
--- a/device/dev_master.h
+++ b/device/dev_master.h
@@ -30,6 +30,9 @@
* Bind an IO operation to the master CPU.
*/
+#ifndef _DEVICE_DEV_MASTER_H_
+#define _DEVICE_DEV_MASTER_H_
+
#include <cpus.h>
#if NCPUS > 1
@@ -58,3 +61,5 @@
#define io_release_master()
#endif NCPUS > 1
+
+#endif /* _DEVICE_DEV_MASTER_H_ */
diff --git a/include/device/tty_status.h b/include/device/tty_status.h
index 15249a4..2eed5d0 100644
--- a/include/device/tty_status.h
+++ b/include/device/tty_status.h
@@ -30,6 +30,9 @@
* Status information for tty.
*/
+#ifndef _DEVICE_TTY_STATUS_H_
+#define _DEVICE_TTY_STATUS_H_
+
struct tty_status {
int tt_ispeed; /* input speed */
int tt_ospeed; /* output speed */
@@ -127,3 +130,5 @@ struct tty_status {
/* clear break condition */
#define TTY_SET_TRANSLATION (dev_flavor_t)(('t'<<16) + 8)
/* set translation table */
+
+#endif /* _DEVICE_TTY_STATUS_H_ */
diff --git a/include/mach/version.h b/include/mach/version.h
index ec12ea7..3ef7859 100644
--- a/include/mach/version.h
+++ b/include/mach/version.h
@@ -43,6 +43,9 @@
* minor 0.
*/
+#ifndef _MACH_VERSION_H_
+#define _MACH_VERSION_H_
+
#define KERNEL_MAJOR_VERSION 4
#define KERNEL_MINOR_VERSION 0
@@ -66,3 +69,5 @@
* excised from the CSD environment.
*/
#define INCLUDE_VERSION 0
+
+#endif /* _MACH_VERSION_H_ */
diff --git a/ipc/ipc_machdep.h b/ipc/ipc_machdep.h
index e864c4b..c205ba4 100755
--- a/ipc/ipc_machdep.h
+++ b/ipc/ipc_machdep.h
@@ -24,6 +24,9 @@
* the rights to redistribute these changes.
*/
+#ifndef _IPC_IPC_MACHDEP_H_
+#define _IPC_IPC_MACHDEP_H_
+
/*
* At times, we need to know the size of a port in bits
*/
@@ -38,3 +41,4 @@
#define PORT_T_SIZE_IN_BITS 32
#endif
+#endif /* _IPC_IPC_MACHDEP_H_ */