mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
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: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
9c2970fbb4
commit
930c4acc06
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user