summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-06-23 07:53:55 +0000
committernicm <nicm@openbsd.org>2010-06-23 07:53:55 +0000
commit2da19def7aad79235fca2bdf58f8d3bfba491d72 (patch)
treea31f1f8cb894ee314baac14413ddcb8c482261b2
parentregen (diff)
downloadwireguard-openbsd-2da19def7aad79235fca2bdf58f8d3bfba491d72.tar.xz
wireguard-openbsd-2da19def7aad79235fca2bdf58f8d3bfba491d72.zip
Protect against multiple inclusion, from Christiano F. Haesbaert.
ok deraadt@
-rw-r--r--lib/libutil/imsg.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libutil/imsg.h b/lib/libutil/imsg.h
index b611926f05b..d691f7d36f3 100644
--- a/lib/libutil/imsg.h
+++ b/lib/libutil/imsg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg.h,v 1.1 2010/05/26 16:44:32 nicm Exp $ */
+/* $OpenBSD: imsg.h,v 1.2 2010/06/23 07:53:55 nicm Exp $ */
/*
* Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -18,6 +18,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef _IMSG_H_
+#define _IMSG_H_
+
#define IBUF_READ_SIZE 65535
#define IMSG_HEADER_SIZE sizeof(struct imsg_hdr)
#define MAX_IMSGSIZE 16384
@@ -105,3 +108,5 @@ void imsg_close(struct imsgbuf *, struct ibuf *);
void imsg_free(struct imsg *);
int imsg_flush(struct imsgbuf *);
void imsg_clear(struct imsgbuf *);
+
+#endif