Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#50 Netcat 0.7.1 does not compile on Cygwin.

open
nobody
5
2010-11-05
2010-11-05
w0j7
No

Netcat 0.7.1 does not compile on Cygwin out of the box.

1) On Windows, there is no ipi_spec_dst in struct in_pktinfo.

Also, when issue (1) is fixed, UDP mode does not work, as:

2) SO_LINGER option is not valid for UDP sockes on Windows

I've included a patch which modifies configure.ac, config.h.in and netcat.h to take (1) into account, and also modifies netcat.c in order to address (2).

Procedure:
download netcat-0.7.1.tar.gz
tar -xvf netcat-0.7.1.tar.gz
patch -p0 < netcat-cygwin.patch
cd netcat-0.7.1
aclocal
autoconf
autoheader
./configure
make

Discussion