James Olsen <jamesml@planetolsen.com> writes:
> If I keep the "sys/un.h" include, I get:
> In file included from /usr/include/sys/un.h:1,
> from test.c:3:
> /usr/include/linux/un.h:7: parse error before `sa_family_t'
> /usr/include/linux/un.h:7: warning: no semicolon at end of struct or union
> /usr/include/linux/un.h:9: parse error before `}'
> test.c: In function `main':
> test.c:6: storage size of `un' isn't known
It would appear that on your platform, sys/un.h requires another header
file to be included first (whichever one defines sa_family_t). If you
poke around in /usr/include you should be able to find out which.
If you can derive a working test program please send it along.
regards, tom lane