Ticket #46968: patch-opusfile.diff

File patch-opusfile.diff, 1.2 KB (added by dbevans (David B. Evans), 9 years ago)

Proposed patch revised

  • Portfile

     
    55
    66name                opusfile
    77version             0.6
     8revision            1
    89categories          audio
    910license             BSD
    1011platforms           darwin
     
    2526                    port:libogg \
    2627                    port:libopus
    2728
     29patchfiles          patch-src-http.c.diff
     30
     31configure.args      --disable-silent-rules
     32
    2833livecheck.type      regex
    2934livecheck.url       ${master_sites}
    3035livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
  • files/patch-src-http.c.diff

     
     1--- src/http.c.orig     2015-02-26 10:23:12.000000000 -0800
     2+++ src/http.c  2015-02-26 10:27:55.000000000 -0800
     3@@ -721,7 +721,7 @@
     4   char             service[6];
     5   memset(&hints,0,sizeof(hints));
     6   hints.ai_socktype=SOCK_STREAM;
     7-#if !defined(_WIN32)
     8+#if defined(AI_NUMERICSERV)
     9   hints.ai_flags=AI_NUMERICSERV;
     10 #endif
     11   OP_ASSERT(_port<=65535U);