Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include linux header file failed #46

Open
qiffang opened this issue Mar 28, 2021 · 2 comments
Open

Include linux header file failed #46

qiffang opened this issue Mar 28, 2021 · 2 comments

Comments

@qiffang
Copy link

qiffang commented Mar 28, 2021

I want to #include <net/sock.h> in kprobe.c and i also add the path in clang but it failed.
Can you tell me how to include the linux header?
Thanks

@belyalov
Copy link
Contributor

belyalov commented Apr 1, 2021

It is a bit vague question - in short, it depends on your build system.

Generally you need to add some kind of dependencies to build system so compiler will find these headers.

@sp3rm0k
Copy link

sp3rm0k commented Jan 29, 2024

@qiffang Sorry, were you able to solve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants