--- 87/Configure 2015-03-01 20:58:33.916405300 +0000 +++ 89/Configure 2015-03-01 20:59:30.405406996 +0000 @@ -14,7 +14,7 @@ # shell script, named $LSOF_MK, that places its source modules in this # directory. # -# $Id: Configure,v 1.162 2013/01/02 17:13:48 abe Exp $ +# $Id: Configure,v 1.163 2014/10/13 22:31:08 abe Exp abe $ # LSOF_CFLAGS_OVERRIDE=1 may be introduced through the environment to cause # the library Makefile's CFLAGS definition to override any in the @@ -2814,6 +2897,17 @@ return(0); } LSOF_CFGF="$LSOF_CFGF -DHASNORPC_H" fi # } + # Test for TCP_* symbols. + + if test -r ${LSOF_INCLUDE}/netinet/tcp.h # ( + then + grep -q TCP_ESTABLISHED ${LSOF_INCLUDE}/netinet/tcp.h + if test $? -eq 0 # { + then + LSOF_CFGF="$LSOF_CFGF -DNEEDS_NETINET_TCPH" + fi #} + fi # } + # Test for SELinux support. LSOF_TMP1=0 --- 87/dialects/linux/dlsof.h 2015-03-01 20:58:33.923405300 +0000 +++ 89/dialects/linux/dlsof.h 2015-03-01 20:59:30.405406996 +0000 @@ -31,7 +31,7 @@ /* - * $Id: dlsof.h,v 1.22 2012/04/10 16:39:50 abe Exp $ + * $Id: dlsof.h,v 1.22 2012/04/10 16:39:50 abe Exp abe $ */ @@ -50,11 +50,11 @@ #include #include -# if defined(GLIBCV) || defined(__UCLIBC__) +# if defined(GLIBCV) || defined(__UCLIBC__) || defined(NEEDS_NETINET_TCPH) #include -# else /* !defined(GLIBCV) && !defined(__UCLIBC__) */ +# else /* !defined(GLIBCV) && !defined(__UCLIBC__) && !defined(NEEDS_NETINET_TCPH) */ #include -# endif /* defined(GLIBCV) || defined(__UCLIBC__) */ +# endif /* defined(GLIBCV) || defined(__UCLIBC__) || defined(NEEDS_NETINET_TCPH) */ # if !defined(HASNORPC_H) #include