fix a library paths, nc patch

This commit is contained in:
Brent Cook 2015-09-13 19:15:34 -05:00
parent 2cb6d19e10
commit c7ae7c0c9d
2 changed files with 4 additions and 4 deletions

View File

@ -7,8 +7,8 @@ noinst_PROGRAMS = nc
EXTRA_DIST = nc.1 EXTRA_DIST = nc.1
nc_LDADD = $(PLATFORM_LDADD) $(PROG_LDADD) nc_LDADD = $(PLATFORM_LDADD) $(PROG_LDADD)
nc_LDADD += $(top_builddir)/tls/libcrypto.la nc_LDADD += $(top_builddir)/crypto/libcrypto.la
nc_LDADD += $(top_builddir)/tls/libssl.la nc_LDADD += $(top_builddir)/ssl/libssl.la
nc_LDADD += $(top_builddir)/tls/libtls.la nc_LDADD += $(top_builddir)/tls/libtls.la
CPPFLAGS += -I$(top_srcdir)/apps/nc/compat CPPFLAGS += -I$(top_srcdir)/apps/nc/compat

View File

@ -1,5 +1,5 @@
--- apps/nc/netcat.c.orig Sun Sep 13 08:12:39 2015 --- apps/nc/netcat.c.orig Sun Sep 13 08:12:39 2015
+++ apps/nc/netcat.c Sun Sep 13 19:05:00 2015 +++ apps/nc/netcat.c Sun Sep 13 19:15:13 2015
@@ -98,9 +98,13 @@ @@ -98,9 +98,13 @@
int Dflag; /* sodebug */ int Dflag; /* sodebug */
int Iflag; /* TCP receive buffer size */ int Iflag; /* TCP receive buffer size */
@ -90,7 +90,7 @@
- int s, ret, x = 1; - int s, ret, x = 1;
+ int s; + int s;
+#ifdef SO_REUSEPORT +#ifdef SO_REUSEPORT
+ int ret; x = 1; + int ret, x = 1;
+#endif +#endif
int error; int error;