| From | Sent On | Attachments |
|---|---|---|
| Poul-Henning Kamp | Oct 2, 2000 3:05 am | |
| Jeremy Lea | Oct 2, 2000 3:14 am | |
| Poul-Henning Kamp | Oct 2, 2000 3:20 am | |
| Jordan Hubbard | Oct 2, 2000 10:10 am | |
| Peter van Dijk | Oct 2, 2000 10:52 am | |
| Siobhan Patricia Lynch | Oct 2, 2000 6:41 pm | |
| Bruce Evans | Oct 2, 2000 7:45 pm | |
| Jeffrey Hsu | Oct 3, 2000 1:07 am | |
| Bruce Evans | Oct 5, 2000 4:03 am |
| Subject: | #include <struct.h> in <sys/queue.h> | |
|---|---|---|
| From: | Poul-Henning Kamp (ph...@freebsd.org) | |
| Date: | Oct 2, 2000 3:05:56 am | |
| List: | org.freebsd.freebsd-current | |
Trying to compile the ircII port, it crashes with:
===> Building for ircii-4.4X
cc -I. -I/usr/ports/irc/ircII/work/ircii-4.4X/include -O -pipe -DHAVE_CONFIG_H
-c /usr/ports/irc/ircII/work/ircii-4.4X/source/alias.c
In file included from /usr/include/sys/queue.h:40,
from /usr/include/netinet6/in6.h:76,
from /usr/include/netinet/in.h:475,
from /usr/ports/irc/ircII/work/ircii-4.4X/include/irc.h:79,
from /usr/ports/irc/ircII/work/ircii-4.4X/source/alias.c:35:
/usr/ports/irc/ircII/work/ircii-4.4X/include/struct.h:51: syntax error before
`_'
This is because there is a file called "struct.h" in the ircII distribution.
The addition of #include <struct.h> to <sys/queue.h> looks a bit unsettling to me: A sys/* file shouldn't reference a /usr/include file I think ?
Is the correct thing not to mv <struct.h> to <sys/struct.h>, create a <struct.h> which just pulls in <sys/struct.h> and have <sys/queue.h> #include <sys/struct.h> ?
-- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 ph...@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message





