Re: REG_RIP undeclared

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



2010/6/6 Lukáš Jirkovský <l.jirkovsky@xxxxxxxxx>:
>>>
>>
>> Oh, now I see where the problem is. There are several includes named ucontext.h
>>
>> Lukas
>>
>
> OK, that's not the problem. I tried compiling it with -save-temps
> option passed to gcc and I see that the correct file is included but
> for some reason the #ifdef __USE_GNU part is not included even though
> __USE_GNU is defined before #include <ucontext.h>
>
> Any ideas?
>

Anyway, if I copy the part

#ifdef __USE_GNU
/* Number of each register in the `gregset_t' array.  */
enum
{
  REG_R8 = 0,
# define REG_R8     REG_R8
…
# define REG_CR2    REG_CR2
};
#endif

from the sys/ucontext.h to another file the enum is included correctly
and application.c compiles.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux