From: Derrick Brashear Date: Tue, 13 Sep 2011 18:44:32 +0000 (-0400) Subject: afscp: add decl for roken function X-Git-Tag: upstream/1.6.1.pre1^2~231 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=675e32abe0a91f937ca0fb86591ccb6668057b60;p=packages%2Fo%2Fopenafs.git afscp: add decl for roken function strnlen needs to be declared if we provide it Change-Id: I31183b1c98e6e30ba166ea05c49132872f66029a Reviewed-on: http://gerrit.openafs.org/5406 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/libafscp/afscp_internal.h b/src/libafscp/afscp_internal.h index a5aa26a8e..0ce984743 100644 --- a/src/libafscp/afscp_internal.h +++ b/src/libafscp/afscp_internal.h @@ -32,4 +32,8 @@ extern int _StatStuff(const struct afscp_venusfid *, #define afs_dprintf(x) printf x #endif +#ifndef HAVE_STRNLEN +size_t strnlen(const char *s, size_t len); +#endif + #endif /* AFS_SRC_LIBAFSCP_AFSCP_INTERNAL_H */