Ticket #30078: arj.diff

File arj.diff, 1.8 KB (added by nerdling (Jeremy Lavergne), 13 years ago)

remove arj's strnlen() definition

  • files/patch-fardata.c.diff

     
     1--- fardata.c.orig      2011-08-30 16:06:37.000000000 -0400
     2+++ fardata.c   2011-08-30 16:06:58.000000000 -0400
     3@@ -188,17 +188,6 @@
     4  *
     5  */
     6 
     7-/* Length-limited strlen() */
     8-
     9-static int strnlen(const char FAR *s, int count)
     10-{
     11- const char FAR *sc;
     12-
     13- for(sc=s; *sc!='\0'&&count--; ++sc)
     14-  ;
     15- return(sc-s);
     16-}
     17-
     18 /* Hex representation of digits */
     19 
     20 static char adigit(unsigned long n, int is_uc)
  • Portfile

     
    2323checksums           rmd160  80f8a1a8cd203f73def8e957d96563a4dba80153 \
    2424                    sha256  589e4c9bccc8669e7b6d8d6fcd64e01f6a2c21fe10aad56a83304ecc3b96a7db
    2525
    26 platform darwin {
    27     pre-fetch {
    28         if {${os.major} > 10} {
    29             ui_error "${name} will only build on Mac OS X 10.6 Snow Leopard or earlier"
    30             return -code error "incompatible Mac OS X version"
    31         }
    32     }
    33 }
    34 
    3526post-extract {
    3627    if {[file exists ${prefix}/share/libtool/config/config.guess]} {
    3728        copy -force ${prefix}/share/libtool/config/config.guess ${prefix}/share/libtool/config/config.sub ${autoconf.dir}
     
    4334patchfiles          patch-configure.in patch-environ.c \
    4435                    patch-makefile.in patch-postproc.c \
    4536                    patch-uxspec.c
     37platform darwin {
     38    if {${os.major} > 10} {
     39        patchfiles-append   patch-fardata.c.diff
     40    }
     41}
    4642
     43
    4744post-patch {
    4845    # as: Flag option -o has already been seen!
    4946    reinplace {s|-o$@|-o $@|g} ${worksrcpath}/gnu/makefile.in