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

No typedef for __uint16_t #1

Closed
webhat opened this issue Jul 12, 2013 · 4 comments
Closed

No typedef for __uint16_t #1

webhat opened this issue Jul 12, 2013 · 4 comments

Comments

@webhat
Copy link
Contributor

webhat commented Jul 12, 2013

I ran make, and got the following error. stackoverflow suggested that it was due to a missing typedef.

./gen_tables.py /usr/src/linux/
cc -c -o ministrace.o ministrace.c
In file included from ministrace.c:2:0:
/usr/include/sys/user.h:32:3: error: expected specifier-qualifier-list before '__uint16_t'
make: *** [ministrace.o] Error 1

@webhat
Copy link
Contributor Author

webhat commented Jul 12, 2013

Adding #include <bits/types.h> before #include <sys/user.h> seems to fix the issue.

@nelhage
Copy link
Owner

nelhage commented Jul 12, 2013

Thanks for the report, and that fix sounds reasonable. Feel like putting together a pull request so I can just merge it?

@webhat
Copy link
Contributor Author

webhat commented Jul 12, 2013

I'm already on it. :)

@nelhage
Copy link
Owner

nelhage commented Jul 12, 2013

resolved by #2

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

2 participants