spamass-milt-list
[Top][All Lists]
Advanced

[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 14:43:14 -0600
User-agent: Mutt/1.5.3i

In the last episode (Mar 10), Tony Shadwick said:
> Oops, my bad.  There's problems, but not what I said below.  I had
> problems getting cvs to like my ssh key, so I gave up on it and
> downloaded.  It looks like I got HTML stuck in my source.  I got that
> straight now, but here's the latest failure:
> 
> config.status: creating config.h
> make  all-am
> g++ -DHAVE_CONFIG_H -I. -I. -I.     -g -O2  -c -o spamass-milter.o `test
> -f 'spamass-milter.cpp' || echo './'`spamass-milter.cpp
> 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:15: 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"
> poll.c: In function `poll':
> poll.c:15: `fd_set' undeclared (first use in this function)

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 :)

-- 
        Dan Nelson
        address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]