From: Felix Fietkau Date: Fri, 1 Jun 2012 08:08:58 +0000 (+0200) Subject: libubus: fix multiple inclusions of libubus.h X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9;p=oweals%2Fubus.git libubus: fix multiple inclusions of libubus.h --- diff --git a/libubus.h b/libubus.h index 917d122..99cbbb4 100644 --- a/libubus.h +++ b/libubus.h @@ -11,6 +11,9 @@ * GNU General Public License for more details. */ +#ifndef __LIBUBUS_H +#define __LIBUBUS_H + #include #include #include @@ -231,3 +234,5 @@ static inline int ubus_unregister_event_handler(struct ubus_context *ctx, { return ubus_remove_object(ctx, &ev->obj); } + +#endif