Bug 31448

Summary: /usr/include/unistd.h:124: syntax error before `char'
Product: Base System Reporter: Mika Nystrom <mika>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   

Description Mika Nystrom 2001-10-23 09:00:00 UTC
 /usr/include/unistd.h has the const keyword on line 124.  This is
 incorrect because this line is not protected from a K&R C compiler.

Fix: 

workaround: #define const
 fix: make const keyword appear only when __STDC__ is defined.
How-To-Repeat:  #include unistd.h and try compiling with cc -traditional
Comment 1 Jeroen Ruigrok van der Werven freebsd_committer freebsd_triage 2001-10-28 11:42:38 UTC
Responsible Changed
From-To: gnats-admin->asmodai

I am already discussing this with bde and Mike Barcroft.
Comment 2 Jeroen Ruigrok van der Werven freebsd_committer freebsd_triage 2001-11-16 10:18:45 UTC
Responsible Changed
From-To: asmodai->freebsd-bugs

Move back to the free pool.
Comment 3 Mike Barcroft freebsd_committer freebsd_triage 2001-12-27 21:00:32 UTC
State Changed
From-To: open->closed


Fixed in -CURRENT and -STABLE.