On Thu, Nov 27, 2008 at 1:35 PM,  <[EMAIL PROTECTED]> wrote:
> Now, (a) I'm hoping someone can compile reveal.c (pcc -o reveal
> -D_POSIX_SOURCES -D_BSD_EXTENSION reveal.c -lbsd) in a pristine APE
> environment and prove to me that it works unmodified or, (b) somebody
> can give me some pointers on figuring out how to make sure it works.

# pcc -o reveal -D_POSIX_SOURCE -D_BSD_EXTENSION reveal.c -lbsd
cpp: reveal.c:58 No newline at end of file
/tmp/reveal.c:45[stdin:934] syntax error, last name: socklen_t
/tmp/reveal.c:55[stdin:944] case/default outside a switch
/tmp/reveal.c:58[stdin:947] syntax error, last name: 0
pcc: cpp: 8c 71799: error

 After removing the (socklen_t*) typecast...
# pcc -o reveal -D_POSIX_SOURCE -D_BSD_EXTENSION reveal.c -lbsd
# ./reveal
ERRNO: 12
socket accept: Invalid argument

-sqweek

Reply via email to