File: stubs.h

package info (click to toggle)
linux 6.18.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,742,212 kB
  • sloc: ansic: 26,783,651; asm: 272,129; sh: 148,799; python: 79,242; makefile: 57,742; perl: 36,527; xml: 19,542; cpp: 5,911; yacc: 4,939; lex: 2,950; awk: 1,607; sed: 30; ruby: 25
file content (11 lines) | stat: -rw-r--r-- 602 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
/*
 * Dummy gnu/stubs.h. clang can end up including /usr/include/gnu/stubs.h when
 * compiling BPF files although its content doesn't play any role. The file in
 * turn includes stubs-64.h or stubs-32.h depending on whether __x86_64__ is
 * defined. When compiling a BPF source, __x86_64__ isn't set and thus
 * stubs-32.h is selected. However, the file is not there if the system doesn't
 * have 32bit glibc devel package installed leading to a build failure.
 *
 * The problem is worked around by making this file available in the include
 * search paths before the system one when building BPF.
 */