[1975] in Kerberos-V5-bugs
beta6 strstr() portability fix
daemon@ATHENA.MIT.EDU (Dave McGuire)
Sun Jun 9 17:46:28 1996
Date: Sun, 9 Jun 1996 17:46:09 -0400
From: Dave McGuire <mcguire@rocinante.digex.net>
To: krb5-bugs@MIT.EDU
Folks,
Another little nit...in admin/edit/util.c, line 36, there's a
conditional block that compiles a local strstr() function. It tests
for various architectures and operating systems, but the test fails if
it's running under NetBSD/vax for example, which has its own strstr().
My fix was to change:
#if defined(sysvimp) || ( defined(mips) && defined(SYSTYPE_BSD43)) || (defined(vax) && !defined(ultrix))
To:
#if defined(sysvimp) || ( defined(mips) && defined(SYSTYPE_BSD43)) || (defined(vax) && !defined(ultrix) && !defined(NetBSD))
This solved the problem for me, though there may be a more portable
way to do this. Maybe configure can test for strstr and do a
HAVE_STRSTR trick? I'm not sure how to do that so I won't attempt
it...but I'm trying to make this easy for you folks... :)
Regards,
-Dave McGuire
Systems Engineer
Digital Express Group, Incorporated
mcguire@digex.net