[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compile fails on OS X still with new poll()
From: |
Dan Nelson |
Subject: |
Re: Compile fails on OS X still with new poll() |
Date: |
Mon, 10 Mar 2003 16:09:44 -0600 |
User-agent: |
Mutt/1.5.3i |
In the last episode (Mar 10), Tony Shadwick said:
> > Adding
> >
> > #include <unistd.h>
> > #include <sys/types.h>
> > #include <sys/time.h>
> >
> > to the top of poll.c should fix it. At least those are the
> > includes at the top of OSX's select manpage.
>
> [erwin:local/src/spamass-milter-0.1.3a] numbski# make
> make all-am
> gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c `test -f 'poll.c' || echo
> './'`poll.c
> /usr/include/sys/select.h:80: undefined type, found `u_int'
> poll.c:20: undefined type, found `fd_set'
> cpp-precomp: warning: errors during smart preprocessing, retrying in basic
> mode
> In file included from poll.c:2:
> /usr/include/sys/select.h:80: parse error before "u_int"
"top of poll.c" meaning above the #include <sys/select.h> line :)
--
Dan Nelson
address@hidden