usbip : Add usbip support with appropriate dependencies.
[librecmc/librecmc.git] / package / libs / tcp_wrappers / patches / 005-no--lnsl-on-musl.patch
1 Index: tcp_wrappers_7.6/Makefile
2 ===================================================================
3 --- tcp_wrappers_7.6.orig/Makefile
4 +++ tcp_wrappers_7.6/Makefile
5 @@ -1,4 +1,4 @@
6 -GLIBC=$(shell grep -s -c __GLIBC__ /usr/include/features.h)
7 +GLIBC=$(shell grep -s -c __GLIBC__ ${STAGING_DIR}/usr/include/features.h)
8  
9  # @(#) Makefile 1.23 97/03/21 19:27:20
10  
11 @@ -146,9 +146,11 @@ freebsd:
12         LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP= TLI= \
13         EXTRA_CFLAGS=-DSYS_ERRLIST_DEFINED VSYSLOG= all
14  
15 +ifneq ($(GLIBC),)
16  ifneq ($(GLIBC),0)
17  MYLIB=-lnsl
18  endif
19 +endif
20  
21  linux:
22         @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \