Edit

IABSD.fr/ports/mail/perdition/patches/patch-perdition_str_c

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2013-03-15 15:17:36
    Hash : 7c32f87b
    Message : Update Perdition to 1.19-rc5 (using a so-called "release candidate" because upstream haven't made a real release in quite some time, and this fixes problems people have encountered). Change to DPB-friendly no_subpackage handling and don't use groff. Feedback/tweaks, fix for SSL timeout-related failure, and testing from Rogier Krieger.

  • mail/perdition/patches/patch-perdition_str_c
  • $OpenBSD: patch-perdition_str_c,v 1.1 2013/03/15 15:17:36 sthen Exp $
    
    avoid conflict with string.h
    
    --- perdition/str.c.orig	Sat Nov 13 10:41:45 2010
    +++ perdition/str.c	Sat Nov 13 10:42:12 2010
    @@ -721,7 +721,7 @@ char *str_replace(char *str, size_t n, ...) 
      *       the time.
      **********************************************************************/
     
    -const char *strcasestr(const char *haystack, const char *needle)
    +const char *perdition_strcasestr(const char *haystack, const char *needle)
     {
     	size_t i, haystack_len, needle_len;
     
    @@ -758,7 +758,7 @@ const char *strcasedelimword(const char *haystack, con
     {
     	const char *found;
     
    -	found = strcasestr(haystack, needle);
    +	found = perdition_strcasestr(haystack, needle);
     	if (!found)
     		return NULL;