Opened 15 years ago

Closed 15 years ago

#19 closed defect (fixed)

gcc: gcc limits.h overrides limits.h from libc

Reported by: bird Owned by: bird
Priority: high Milestone: libc-0.6.1
Component: gcc Version: 0.6
Severity: normal Keywords: gcc libc limits.h


GCC has it's own limits.h which hides the limits.h in usr/include installed by libc. This means that we're missing lot's a stuff, esp. PATH_MAX.

Change History (4)

comment:1 Changed 15 years ago by bird

Don the necessary libc bit (on the trunk). There are three #defines which libc isn't defining. These has been added to sys/syslimits.h.

comment:2 Changed 15 years ago by bird

Milestone: libc-0.7libc-0.6.1
Status: newassigned

comment:3 Changed 15 years ago by bird

GCC doesn't detect our limits.h because the path used in the test statement has lot's of backslashes. Have made an attempt at fixing it by messing with the PATH, so for untested and I'm unsure if it'll help..

comment:4 Changed 15 years ago by bird

Resolution: fixed
Status: assignedclosed

The PATH wasn't the clue. The problem was in t-emx, first we used a PC slashy path so we've never found the libc limits.h, and second we overridden STMP_FIXINC so when the first problem was fixed syslimits.h wasn't found. But now it seems like it's working again.

Note: See TracTickets for help on using tickets.