Commit 930c4acc authored by Willy Tarreau's avatar Willy Tarreau Committed by Paul E. McKenney

tools/nolibc: guard the main file against multiple inclusion

Including nolibc.h multiple times results in build errors due to multiple
definitions. Let's add a guard against multiple inclusions.
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 9c2970fb
...@@ -80,6 +80,8 @@ ...@@ -80,6 +80,8 @@
* https://w3challs.com/syscalls/ * https://w3challs.com/syscalls/
* *
*/ */
#ifndef _NOLIBC_H
#define _NOLIBC_H
#include <asm/unistd.h> #include <asm/unistd.h>
#include <asm/ioctls.h> #include <asm/ioctls.h>
...@@ -2582,3 +2584,5 @@ dev_t makedev(unsigned int major, unsigned int minor) ...@@ -2582,3 +2584,5 @@ dev_t makedev(unsigned int major, unsigned int minor)
{ {
return ((major & 0xfff) << 8) | (minor & 0xff); return ((major & 0xfff) << 8) | (minor & 0xff);
} }
#endif /* _NOLIBC_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment