projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c2970f
)
tools/nolibc: guard the main file against multiple inclusion
author
Willy Tarreau
<w@1wt.eu>
Mon, 7 Feb 2022 16:23:14 +0000
(17:23 +0100)
committer
Paul E. McKenney
<paulmck@kernel.org>
Tue, 12 Apr 2022 00:14:33 +0000
(17:14 -0700)
Including nolibc.h multiple times results in build errors due to multiple
definitions. Let's add a guard against multiple inclusions.
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/nolibc.h
patch
|
blob
|
history
diff --git
a/tools/include/nolibc/nolibc.h
b/tools/include/nolibc/nolibc.h
index ad23712f9cb5c2840d1084376f77583a67b9ea09..4660637d9b17c948a915dcfd52231fd3d645ab5a 100644
(file)
--- a/
tools/include/nolibc/nolibc.h
+++ b/
tools/include/nolibc/nolibc.h
@@
-80,6
+80,8
@@
* https://w3challs.com/syscalls/
*
*/
+#ifndef _NOLIBC_H
+#define _NOLIBC_H
#include <asm/unistd.h>
#include <asm/ioctls.h>
@@
-2582,3
+2584,5
@@
dev_t makedev(unsigned int major, unsigned int minor)
{
return ((major & 0xfff) << 8) | (minor & 0xff);
}
+
+#endif /* _NOLIBC_H */