summaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-06-23 07:53:56 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-06-23 07:53:56 +0000
commit8618d7cef6a91d896b097a5cc482cb5525fea42e (patch)
tree3c8a65c87837bd4e58235dfb65cecf902855fd1e /lib/libutil
parent2c1e91f020a47e90e205ac8e252222562fced9cf (diff)
Protect against multiple inclusion, from Christiano F. Haesbaert.
ok deraadt@
Diffstat (limited to 'lib/libutil')
-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