summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2011-07-29 16:20:36 -0400
committerEamon Walsh <ewalsh@tycho.nsa.gov>2011-07-29 16:20:36 -0400
commitf51d7cd07430dc708b91f87b53748f4fd8d1c271 (patch)
tree5e6e3b69694aaf672ee1bca31613fbb3333d8fc6
parent90c24e928f75339767fc76df12ba816cf1ab7795 (diff)
Protect libvchan.h with #ifdefs to prevent multiple inclusion.
-rw-r--r--libvchan/libvchan.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvchan/libvchan.h b/libvchan/libvchan.h
index a6c08f4..db84577 100644
--- a/libvchan/libvchan.h
+++ b/libvchan/libvchan.h
@@ -35,6 +35,9 @@
* such as XenStore.
*/
+#ifndef _LIBVCHAN_H_
+#define _LIBVCHAN_H_
+
#include <stdint.h>
#include <sys/types.h>
#include <xen/sys/evtchn.h>
@@ -139,3 +142,5 @@ int libvchan_fd_for_select(struct libvchan *ctrl);
int libvchan_is_open(struct libvchan* ctrl);
int libvchan_data_ready(struct libvchan *ctrl);
int libvchan_buffer_space(struct libvchan *ctrl);
+
+#endif /* _LIBVCHAN_H_ */