From: Willy Tarreau Date: Tue, 7 Apr 2015 19:00:08 +0000 (+0200) Subject: CLEANUP: namespaces: fix protection against multiple inclusions X-Git-Tag: v1.6-dev2~217 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b90511eeb9c4996002a24be11b542c21277f6ba;p=thirdparty%2Fhaproxy.git CLEANUP: namespaces: fix protection against multiple inclusions The include file did not protect correctly against multiple inclusions, as it didn't define the file name after checking for it. That's currently harmless as the file is only included from .c but that could change. --- diff --git a/include/common/namespace.h b/include/common/namespace.h index e67742b1bf..fa4185db61 100644 --- a/include/common/namespace.h +++ b/include/common/namespace.h @@ -1,4 +1,5 @@ -#ifndef NAMESPACE_H +#ifndef _NAMESPACE_H +#define _NAMESPACE_H #include #include @@ -21,4 +22,4 @@ const struct netns_entry* netns_store_lookup(const char *ns_name, size_t ns_name int netns_init(void); #endif /* CONFIG_HAP_NS */ -#endif /* NAMESPACE_H */ +#endif /* _NAMESPACE_H */