Ticket #36292: fluid_coreaudio.c.diff

File fluid_coreaudio.c.diff, 694 bytes (added by ccarey@…, 12 years ago)

patch to src/drivers/fluid_coreaudio.c to allow fluidsynth @1.1.5_0 to build successfully on Tiger

  • src/drivers/fluid_coreaudio.c

    old new  
    3333#include "config.h"
    3434
    3535#if COREAUDIO_SUPPORT
     36
     37/* Work around for OSX 10.4 */
     38
     39/* enum definition in OpenTransportProviders.h defines these tokens
     40   which are #defined from <netinet/tcp.h> */
     41#ifdef TCP_NODELAY
     42#undef TCP_NODELAY
     43#endif
     44#ifndef _POSIX_C_SOURCE
     45# ifdef TCP_MAXSEG
     46# undef TCP_MAXSEG
     47# endif
     48# ifdef TCP_KEEPALIVE
     49# undef TCP_KEEPALIVE
     50# endif
     51#endif
     52
     53/* End work around */
     54
    3655#include <CoreServices/CoreServices.h>
    3756#include <CoreAudio/CoreAudioTypes.h>
    3857#include <CoreAudio/AudioHardware.h>