ERR in curses and glibc 2.1.3
H . J . Lu
hjl@lucon.org
Thu Mar 2 08:25:00 GMT 2000
glibc 2.1.3 has
#ifdef __USE_GNU
/* Number of each register is the `gregset_t' array. */
enum
{
GS = 0,
# define GS GS
FS,
# define FS FS
ES,
# define ES ES
DS,
# define DS DS
EDI,
# define EDI EDI
ESI,
# define ESI ESI
EBP,
# define EBP EBP
ESP,
# define ESP ESP
EBX,
# define EBX EBX
EDX,
# define EDX EDX
ECX,
# define ECX ECX
EAX,
# define EAX EAX
TRAPNO,
# define TRAPNO TRAPNO
ERR,
# define ERR ERR
EIP,
# define EIP EIP
CS,
# define CS CS
EFL,
# define EFL EFL
UESP,
# define UESP UESP
SS
# define SS SS
};
#endif
in <sys/ucontext.h>. The problem is ERR is a macro in curses.h on
Solaris 2.7 and ncurses. Since <sys/ucontext.h> is included in
<signal.h>, it means you cannot include <signal.h> and <curses.h>
at the same time. I will see it as a glibc bug. It should be fixed.
H.J.
More information about the Libc-hacker
mailing list