File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed
tools/testing/selftests/nolibc Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#include "nolibc-test-linkage.h"
4
4
5
- #ifndef NOLIBC
6
5
#include <errno.h>
7
- #endif
8
6
9
7
void * linkage_test_errno_addr (void )
10
8
{
Original file line number Diff line number Diff line change 9
9
* $(CC) -nostdlib -I/path/to/nolibc/sysroot => _NOLIBC_* guards are present
10
10
* $(CC) with default libc => NOLIBC* never defined
11
11
*/
12
- #ifndef NOLIBC
13
12
#include <stdio.h>
14
13
#include <stdlib.h>
15
14
#include <string.h>
16
- #ifndef _NOLIBC_STDIO_H
17
- /* standard libcs need more includes */
18
15
#include <sys/auxv.h>
19
16
#include <sys/ioctl.h>
20
17
#include <sys/mman.h>
43
40
#include <unistd.h>
44
41
#include <limits.h>
45
42
#include <ctype.h>
46
- #endif
47
- #endif
48
43
49
44
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
50
45
You can’t perform that action at this time.
0 commit comments