Ticket #5973: transmission-2.84-musl-missing-header.patch

File transmission-2.84-musl-missing-header.patch, 1.2 KB (added by blueness, 7 years ago)

patch against version 2.84

  • libtransmission/transmission.h

    libtransmission/transmission.h: add missing <sys/types.h>
    transmission.h and several files including it, like bitfield.c and fdlimits.h
    make reference to ssize_t, off_t and other types defined in <sys/types.h> but
    never include the header.  By including <sys/types.h> in transmission.h, the
    required type definitions are propagated to all files that need them.
    Not including <sys/types.h> on glibc and uClibc systems does not pose a problem
    because of the way the headers stack in those C Standard Libraries, but on musl
    excluding <sys/types.h> leads to compile time failure.
    For the POSIX specs, see
    Signed-of-by: Anthony G. Basile <blueness@gentoo.org>
    diff -Naur transmission-2.84.orig/libtransmission/transmission.h transmission-2.84/libtransmission/transmission.h
    old new  
    2929#include <inttypes.h> /* uintN_t */
    3030#include <time.h> /* time_t */
     31#include <sys/types.h>
    3233#ifdef WIN32
    3334 #define __USE_MINGW_ANSI_STDIO 1