We have strnlen(3) now.
This commit is contained in:
parent
0781014a4b
commit
61130a1581
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.35 2010/04/28 15:22:17 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.36 2010/05/21 13:34:43 ajacoutot Exp $
|
||||
|
||||
COMMENT-main= MS Exchange groupware suite replacement
|
||||
COMMENT-php= MAPI extensions for php5
|
||||
@ -6,7 +6,7 @@ COMMENT-php= MAPI extensions for php5
|
||||
V= 6.30.14
|
||||
DISTNAME= zarafa-${V}
|
||||
|
||||
PKGNAME-main= ${DISTNAME}
|
||||
PKGNAME-main= ${DISTNAME}p0
|
||||
PKGNAME-php= php5-mapi-${V}
|
||||
|
||||
CATEGORIES= mail www productivity
|
||||
|
@ -1,19 +0,0 @@
|
||||
$OpenBSD: patch-provider_client_ClientUtil_cpp,v 1.3 2010/03/21 11:15:20 ajacoutot Exp $
|
||||
--- provider/client/ClientUtil.cpp.orig Tue Jan 26 17:34:50 2010
|
||||
+++ provider/client/ClientUtil.cpp Wed Feb 3 08:53:19 2010
|
||||
@@ -78,6 +78,15 @@ static char THIS_FILE[]=__FILE__;
|
||||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
+#ifdef __OpenBSD__
|
||||
+size_t strnlen(const char *string, size_t maxlen)
|
||||
+{
|
||||
+ size_t i;
|
||||
+ for (i= 0; i < maxlen && *string != '\0'; i++, string++);
|
||||
+ return i;
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
HRESULT ClientUtil::HrInitializeStatusRow (char * lpszProviderDisplay, ULONG ulResourceType, LPMAPISUP lpMAPISup, LPSPropValue lpspvIdentity, ULONG ulFlags)
|
||||
{
|
||||
HRESULT hResult = hrSuccess;
|
Loading…
Reference in New Issue
Block a user