mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 06:37:54 -04:00
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.
This commit is contained in:
parent
3def393f8d
commit
1b90511eeb
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#ifndef NAMESPACE_H
|
||||
#ifndef _NAMESPACE_H
|
||||
#define _NAMESPACE_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <ebistree.h>
|
||||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue