Error when compiling on 64bit Arch Linux #1

1 commit merged into from Jan 22, 2011


None yet

2 participants

ingramj commented Jan 22, 2011

Thanks for writing this useful program. When I tried to compile it on, make gave me the following error:

% make
cc -Wall -Werror -D_GNU_SOURCE -g -c -o reptyr.o reptyr.c
cc -Wall -Werror -D_GNU_SOURCE -g -c -o ptrace.o ptrace.c
In file included from ptrace.c:2:0:
/usr/include/sys/user.h:32:3: error: expected specifier-qualifier-list before ‘__uint16_t’
make: *** [ptrace.o] Error 1

The solution was to include <sys/types.h> before <sys/user.h>, as in the attached commit.

@ingramj ingramj Fix a compiler error in ptrace.c
On some systems, including sys/user.h before sys/types.h causes a
compiler error. Changing the order of the #includes fixes the error.
nelhage commented Jan 22, 2011

Thanks, merged.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment