Opened 17 years ago
Closed 16 years ago
#2346 closed bug (fixed)
Some of headers are not self containing
Reported by: | kaliber | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | - General | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Use following program to show defects:
#!/bin/sh DIR="/boot/develop/headers/posix/" for i in `find $DIR -name '*.h'` do f=${i#$DIR} cat > test.c << EOF #include <$f> int main() { return 0; }; EOF echo "Testing $f" gcc test.c done
Attachments (1)
Change History (6)
comment:1 by , 17 years ago
by , 16 years ago
Attachment: | fix-for-2346.patch added |
---|
comment:2 by , 16 years ago
I've created a complete patch. I skip regex.h fix due to the comment: /* POSIX says that <sys/types.h> must be included (by the caller) before
<regex.h>. */
comment:4 by , 16 years ago
In my opinion the patch is a complete. To be sure check it using simple script included in the first comment.
comment:5 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I left resolv.h as is, and the rest looks fine, thanks!
Note:
See TracTickets
for help on using tickets.
Figured I'd run the test and post the results here.
I then inserted an #include <sys/types.h> right before the #include <$f> and then reran the test and here's what I got:
So it would seem that m68k/arch_setjmp.h, netinet/ip_icmp.h, netinet/ip_var.h, resolv.h may need fixes, or they also have a required include missing. In the regex.h file it states that <sys/types.h> is required first.