[Quote-devel] (no subject)
Status: Alpha
Brought to you by:
dylann
|
From: <sa...@ti...> - 2003-03-21 23:03:02
|
Here's a patch (diff -u) for quote-1.0-alpha1. It patches two files,
and lets me build it on an i686 GNU/Linux system, and probably my
FreeBSD as well, but I haven't checked.. (I'll check whenever I boot
it).
file.c: flag O_EXLOCK in open() doesn't exist on Linux, removed the flag
fetch.c: in resolveHostName() I changed the success test from
``if (h_errno != 0)'' to ``if (h_errno == NULL)'' because
gethostbyname() returns a null pointer on failure, not `zero'
in doFetch(), when passing socketAddress the value of the port to
connect to, we have to be sure it is in network byte order, so
sin_port now = htons(port).
Thats it! Cool program.
HTH,
--
Eric Enright
/^\
\ / ASCII Ribbon Campaign
X Against HTML E-Mail
/ \
Public key: 0xBEDF636F
|