HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #466

Ticket #466: vlc-1.1.5-20101107.patch

File vlc-1.1.5-20101107.patch, 4.2 KB (added by michaelvoliveira, 5 years ago)

Improved .patch

  • bin/override.c

    diff -Naur vlc-1.1.5/bin/override.c vlc-1.1.5-haiku/bin/override.c
    old new  
    120120 * 
    121121 * Some evil libraries modify the environment. We currently ignore the calls as 
    122122 * they could crash the process. This may cause funny behaviour though. */ 
     123#if !defined(__HAIKU__) 
    123124int putenv (char *str) 
    124125{ 
    125126    if (override) 
    … …  
    129130    } 
    130131    return CALL(putenv, str); 
    131132} 
     133#endif 
    132134 
    133135int setenv (const char *name, const char *value, int overwrite) 
    134136{ 
    … …  
    220222    return SIG_DFL; 
    221223} 
    222224 
     225#ifndef SA_SIGINFO 
     226#define SA_SIGINFO              0x40 
     227#endif 
     228 
    223229int sigaction (int signum, const struct sigaction *act, struct sigaction *old) 
    224230{ 
    225231    if (override && act != NULL) 
  • configure.ac

    diff -Naur vlc-1.1.5/configure.ac vlc-1.1.5-haiku/configure.ac
    old new  
    379379        VLC_ADD_LIBS([filesystem access_ftp access_mms access_output_udp oldtelnet netsync sap libvlccore growl_udp],[-lnet]) 
    380380    fi 
    381381    ;; 
     382  haiku) 
     383    SYS=beos 
     384    CFLAGS_save="${CFLAGS_save} -Wno-multichar"; CFLAGS="${CFLAGS_save}" 
     385    CXXFLAGS_save="${CXXFLAGS_save} -Wno-multichar"; CXXFLAGS="${CXXFLAGS_save}" 
     386    VLC_ADD_CXXFLAGS([beos],[]) 
     387    VLC_ADD_LIBS([vlc libvlccore logger],[-lbe]) 
     388    VLC_ADD_LIBS([dvdnav dvdread],[-lroot]) 
     389    VLC_ADD_LIBS([filesystem],[-lroot]) 
     390    VLC_ADD_LIBS([network],[-lnetwork]) 
     391    LDFLAGS_save="${LDFLAGS_save} -lintl"; LDFLAGS="${LDFLAGS_save}" 
     392    VLC_ADD_LIBS([filesystem access_ftp access_mms access_output_udp oldtelnet netsync sap libvlccore growl_udp],[-lnetwork]) 
     393    ;; 
     394 
    382395  *) 
    383396    SYS="${host_os}" 
    384397    ;; 
    … …  
    47134726dnl  Stuff used by the program 
    47144727dnl 
    47154728VERSION_MESSAGE="${VERSION} ${CODENAME}" 
    4716 COPYRIGHT_MESSAGE="Copyright © ${COPYRIGHT_YEARS} the VideoLAN team" 
     4729COPYRIGHT_MESSAGE="Copyright C ${COPYRIGHT_YEARS} the VideoLAN team" 
    47174730AC_DEFINE_UNQUOTED(VERSION_MESSAGE, "${VERSION_MESSAGE}", [Simple version string]) 
    47184731AC_DEFINE_UNQUOTED(COPYRIGHT_MESSAGE, "${COPYRIGHT_MESSAGE}", [Copyright string]) 
    47194732AC_DEFINE_UNQUOTED(COPYRIGHT_YEARS, "${COPYRIGHT_YEARS}", [The copyright years]) 
  • modules/codec/avcodec/subtitle.c

    diff -Naur vlc-1.1.5/modules/codec/avcodec/subtitle.c vlc-1.1.5-haiku/modules/codec/avcodec/subtitle.c
    old new  
    6666 
    6767    /* */ 
    6868    switch (codec_id) { 
    69     case CODEC_ID_HDMV_PGS_SUBTITLE: 
    7069    case CODEC_ID_XSUB: 
    7170        break; 
    7271    default: 
  • modules/control/signals.c

    diff -Naur vlc-1.1.5/modules/control/signals.c vlc-1.1.5-haiku/modules/control/signals.c
    old new  
    8484    free (p_sys); 
    8585} 
    8686 
     87#ifndef SA_SIGINFO 
     88#define SA_SIGINFO              0x40 
     89#endif 
     90 
    8791static bool ignored (int signum) 
    8892{ 
    8993    struct sigaction sa; 
    … …  
    9195    if (sigaction (signum, NULL, &sa)) 
    9296        return false; 
    9397    return ((sa.sa_flags & SA_SIGINFO) 
    94             ? (void *)sa.sa_sigaction : (void *)sa.sa_handler) == SIG_IGN; 
     98            ? (void *)sigaction : (void *)sa.sa_handler) == SIG_IGN; 
    9599} 
    96100 
    97101static void *SigThread (void *data) 
  • src/misc/variables.c

    diff -Naur vlc-1.1.5/src/misc/variables.c vlc-1.1.5-haiku/src/misc/variables.c
    old new  
    396396{ 
    397397    vlc_object_internals_t *priv = vlc_internals( obj ); 
    398398 
    399     tdestroy( priv->var_root, CleanupVar ); 
     399    vlc_tdestroy( priv->var_root, CleanupVar ); 
    400400} 
    401401 
    402402#undef var_Change 
  • src/network/io.c

    diff -Naur vlc-1.1.5/src/network/io.c vlc-1.1.5-haiku/src/network/io.c
    old new  
    213213        switch (ptr->ai_socktype) 
    214214        { 
    215215            case SOCK_STREAM: 
    216             case SOCK_RDM: 
    217216            case SOCK_SEQPACKET: 
    218217#ifdef SOCK_DCCP 
    219218            case SOCK_DCCP: 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/