[Openswan dev] Re: [Openswan CVS] openswan-2/linux/net/ipsec addrtot.c,1.16,1.17

CaT cat at zip.com.au
Sun Sep 19 02:16:57 CEST 2004


On Wed, Sep 15, 2004 at 09:49:05PM +0000, Michael Richardson wrote:
> Update of /xelerance/master/openswan-2/linux/net/ipsec
> In directory tla.xelerance.com:/tmp/cvs-serv16128/linux/net/ipsec
> 
> Modified Files:
> 	addrtot.c 
> Log Message:
> 	use local copy of strstr() if this is going in the kernel.
> 	Not clear why this worked before, or why this shows up 
> 	for modules only.
>  
> +#if defined(__KERNEL__) && !defined(KERNEL_HAS_STRSTR)

If I understand this right, openswan only wants to define its strstr
if the kernel it's being compiled for doesn't have one already
supplied. If so then __HAVE_ARCH_STRSTR would be the appropriate
thing to check for rather then KERNEL_HAS_STRSTR, no?

-- 
    Red herrings strewn hither and yon.


More information about the Dev mailing list