SPARC and header files

Thorsten Kukuk kukuk@suse.de
Thu Mar 16 07:06:00 GMT 2000


Hi,

On SPARC, the following code:

#define _GNU_SOURCE
#include <sys/ptrace.h>
#include <signal.h>

does not compile. signal includes bits/sigcontext.h, which includes
on SPARC asm/ptrace.h -> conflict with sys/ptrace.h

But if I create a special SPARC bits/sigcontext.h, I get problems
with linuxthreads :( asm/ptrace.h will be included over asm/elf.h,
sys/procfs.h.
What also means, the following doesn't work on SPARC, too:

#include <sys/ptrace.h>
#include <sys/procfs.h>

I have added my current patch, maybe somebody else can fix the problem
with sys/procfs.h

  Thorsten
-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/       kukuk@suse.de
SuSE GmbH            Schanzaeckerstr. 10            90443 Nuernberg
Linux is like a Vorlon.  It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.


More information about the Libc-hacker mailing list