Bruce Shaw wrote:
5.0.10.rc2 shows the same thing but make seems to generate a whole lot of
extra noise on the issue eg.
mibII/interfaces.c: In function `parse_interface_config':
mibII/interfaces.c:331: warning: implicit declaration of function `strtok_r'
I'm seeing the same on Solaris 9 (w/ Sun cc). Looking into
/usr/include/string.h, the strtok_r declaration is nested inside:
#if defined(__EXTENSIONS__) || defined(_REENTRANT) || \
(_POSIX_C_SOURCE - 0 >= 199506L)
extern char *strtok_r(char *, const char *, char **);
#endif /* defined(__EXTENSIONS__) || defined(_REENTRANT) .. */
Adding "-D_REENTRANT" to CFLAGS consequently eliminates the warnings.
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders