Edit

IABSD.fr/ports/sysutils/borgbackup/patches

Branch :

  • Show log

    Commit

  • Author : danj
    Date : 2017-02-14 17:56:26
    Hash : 465d529c
    Message : Update to borgbackup-1.0.10 From Björn Ketelaars (maintainer)

  • patch-borg__hashindex_c
  • $OpenBSD: patch-borg__hashindex_c,v 1.2 2017/02/14 17:56:26 danj Exp $
    
    __builtin_bswap32 unavailable at least on sparc64
    
    --- borg/_hashindex.c.orig	Mon Feb 13 04:55:35 2017
    +++ borg/_hashindex.c	Mon Feb 13 12:43:39 2017
    @@ -7,6 +7,7 @@
     #include <sys/stat.h>
     #include <fcntl.h>
     #include <unistd.h>
    +#include <endian.h>
     
     #if defined (__SVR4) && defined (__sun)
     #include <sys/isa_defs.h>
    @@ -25,8 +26,8 @@
     #endif
     
     #if BORG_BIG_ENDIAN
    -#define _le32toh(x) __builtin_bswap32(x)
    -#define _htole32(x) __builtin_bswap32(x)
    +#define _le32toh(x) letoh32(x)
    +#define _htole32(x) htole32(x)
     #else
     #define _le32toh(x) (x)
     #define _htole32(x) (x)