Ticket #206: 0001-Build-Add-support-for-libcx-on-OS-2.patch

File 0001-Build-Add-support-for-libcx-on-OS-2.patch, 2.0 KB (added by dryeo, 5 years ago)
  • configure

    From cb02a2bdaa71184b28fefdca9059fac995e1dfe8 Mon Sep 17 00:00:00 2001
    From: Dave Yeo <dave.r.yeo@gmail.com>
    Date: Tue, 12 Mar 2019 21:30:33 -0700
    Subject: [PATCH] Build:Add support for libcx on OS/2
    
    Libcx is an extension to libc that adds various networking functions amongst other stuff
    
    Signed-off-by: Dave Yeo <dave.r.yeo@gmail.com>
    ---
     configure                | 4 ++++
     libavformat/os_support.h | 4 ++++
     2 files changed, 8 insertions(+)
    
    diff --git a/configure b/configure
    index 908473edf1..dc7671955c 100755
    a b HEADERS_LIST=" 
    16931693    ES2_gl_h
    16941694    gsm_h
    16951695    io_h
     1696    libcx_net_h
    16961697    mach_mach_time_h
    16971698    machine_ioctl_bt848_h
    16981699    machine_ioctl_meteor_h
    case $target_os in 
    44534454        SLIB_INSTALL_EXTRA_LIB='$(LIBPREF)$(NAME)_dll.a $(LIBPREF)$(NAME)_dll.lib'
    44544455        enable dos_paths
    44554456        enable_weak os2threads
     4457        network_extralibs="-lcx"
    44564458        ;;
    44574459    gnu/kfreebsd)
    44584460        add_cppflags -D_BSD_SOURCE
    if ! disabled network; then 
    50195021    check_func inet_aton $network_extralibs
    50205022
    50215023    check_type netdb.h "struct addrinfo"
     5024    check_type libcx/net.h "struct addrinfo"
    50225025    check_type netinet/in.h "struct group_source_req" -D_BSD_SOURCE
    50235026    check_type netinet/in.h "struct ip_mreq_source" -D_BSD_SOURCE
    50245027    check_type netinet/in.h "struct ipv6_mreq" -D_DARWIN_C_SOURCE
    check_header d3d11.h 
    51195122check_header dxva.h
    51205123check_header dxva2api.h -D_WIN32_WINNT=0x0600
    51215124check_header io.h
     5125check_header libcx/net.h
    51225126check_header libcrystalhd/libcrystalhd_if.h
    51235127check_header mach/mach_time.h
    51245128check_header malloc.h
  • libavformat/os_support.h

    diff --git a/libavformat/os_support.h b/libavformat/os_support.h
    index a3329119c0..5bdcee40fc 100644
    a b static inline int is_dos_path(const char *path) 
    9595#endif
    9696#endif
    9797
     98#if HAVE_LIBCX_NET_H
     99#include <libcx/net.h>
     100#endif
     101
    98102#if CONFIG_NETWORK
    99103#if !HAVE_SOCKLEN_T
    100104typedef int socklen_t;