yaml/yaml.patch

changeset 356
14df3eec63f9
child 591
f65313225f8a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/yaml/yaml.patch	Thu Sep 15 17:10:15 2011 +0200
     1.3 @@ -0,0 +1,126 @@
     1.4 +Index: YAML-AppConfig-0.16/Makefile.PL
     1.5 +--- YAML-AppConfig-0.16/Makefile.PL.orig	2006-07-02 23:21:51 +0200
     1.6 ++++ YAML-AppConfig-0.16/Makefile.PL	2009-11-27 13:24:07 +0100
     1.7 +@@ -21,6 +21,7 @@
     1.8 +         eval "require $info->[0]; 0;";
     1.9 +         push @yamls, @$info unless $@;
    1.10 +     }
    1.11 +-    die "YAML >= 0.38 or YAML::Syck >= 0 required.\n" unless @yamls;
    1.12 ++    # die "YAML >= 0.38 or YAML::Syck >= 0 required.\n" unless @yamls;
    1.13 +     return @yamls;
    1.14 + }
    1.15 ++
    1.16 +Index: syck-0.70/lib/bytecode.c
    1.17 +--- syck-0.70/lib/bytecode.c.orig	2009-09-30 19:29:34 +0200
    1.18 ++++ syck-0.70/lib/bytecode.c	2009-11-27 13:24:07 +0100
    1.19 +@@ -7,6 +7,10 @@
    1.20 +  *
    1.21 +  * Copyright (C) 2003 why the lucky stiff
    1.22 +  */
    1.23 ++
    1.24 ++#include <stdlib.h>
    1.25 ++#include <string.h>
    1.26 ++
    1.27 + #include "syck.h"
    1.28 + 
    1.29 + #if GRAM_FILES_HAVE_TAB_SUFFIX
    1.30 +Index: syck-0.70/lib/handler.c
    1.31 +--- syck-0.70/lib/handler.c.orig	2009-09-30 19:29:34 +0200
    1.32 ++++ syck-0.70/lib/handler.c	2009-11-27 13:24:07 +0100
    1.33 +@@ -7,6 +7,9 @@
    1.34 +  * Copyright (C) 2003 why the lucky stiff
    1.35 +  */
    1.36 + 
    1.37 ++#include <stdlib.h>
    1.38 ++#include <string.h>
    1.39 ++
    1.40 + #include "syck.h"
    1.41 + 
    1.42 + SYMID 
    1.43 +Index: syck-0.70/lib/implicit.c
    1.44 +--- syck-0.70/lib/implicit.c.orig	2009-09-30 19:29:34 +0200
    1.45 ++++ syck-0.70/lib/implicit.c	2009-11-27 13:24:07 +0100
    1.46 +@@ -8,6 +8,7 @@
    1.47 +  * Copyright (C) 2003 why the lucky stiff
    1.48 +  */
    1.49 + 
    1.50 ++#include <stdlib.h>
    1.51 + #include "syck.h"
    1.52 + 
    1.53 + #define YYCTYPE     char
    1.54 +Index: syck-0.70/lib/node.c
    1.55 +--- syck-0.70/lib/node.c.orig	2009-09-30 19:29:34 +0200
    1.56 ++++ syck-0.70/lib/node.c	2009-11-27 13:24:07 +0100
    1.57 +@@ -7,6 +7,9 @@
    1.58 +  * Copyright (C) 2003 why the lucky stiff
    1.59 +  */
    1.60 + 
    1.61 ++#include <stdlib.h>
    1.62 ++#include <string.h>
    1.63 ++
    1.64 + #include "syck.h"
    1.65 + 
    1.66 + /*
    1.67 +Index: syck-0.70/lib/syck.c
    1.68 +--- syck-0.70/lib/syck.c.orig	2009-09-30 19:29:34 +0200
    1.69 ++++ syck-0.70/lib/syck.c	2009-11-27 13:24:07 +0100
    1.70 +@@ -7,6 +7,7 @@
    1.71 +  * Copyright (C) 2003 why the lucky stiff
    1.72 +  */
    1.73 + #include <stdio.h>
    1.74 ++#include <stdlib.h>
    1.75 + #include <string.h>
    1.76 + 
    1.77 + #include "syck.h"
    1.78 +@@ -67,12 +68,13 @@
    1.79 + 
    1.80 +     ASSERT( str != NULL );
    1.81 +     beg = str->ptr;
    1.82 ++
    1.83 +     if ( max_size >= 0 )
    1.84 +     {
    1.85 +         max_size -= skip;
    1.86 +-        if ( max_size <= 0 )  max_size = 0;
    1.87 +-        else                  str->ptr += max_size;
    1.88 ++        if ( max_size < 0 ) max_size = 0;
    1.89 + 
    1.90 ++        str->ptr += max_size;
    1.91 +         if ( str->ptr > str->end )
    1.92 +         {
    1.93 +             str->ptr = str->end;
    1.94 +Index: syck-0.70/lib/syck.h
    1.95 +--- syck-0.70/lib/syck.h.orig	2009-09-30 19:29:34 +0200
    1.96 ++++ syck-0.70/lib/syck.h	2009-11-27 13:24:07 +0100
    1.97 +@@ -36,6 +36,8 @@
    1.98 + 
    1.99 + #include <stddef.h>
   1.100 + #include <stdio.h>
   1.101 ++#include <stdlib.h>
   1.102 ++#include <string.h>
   1.103 + #include <ctype.h>
   1.104 + #ifdef HAVE_ST_H
   1.105 + #include <st.h>
   1.106 +Index: syck-0.70/lib/token.c
   1.107 +--- syck-0.70/lib/token.c.orig	2009-09-30 19:29:34 +0200
   1.108 ++++ syck-0.70/lib/token.c	2009-11-27 13:24:07 +0100
   1.109 +@@ -7,6 +7,8 @@
   1.110 +  *
   1.111 +  * Copyright (C) 2003 why the lucky stiff
   1.112 +  */
   1.113 ++#include <stdlib.h>
   1.114 ++#include <string.h>
   1.115 + #include "syck.h"
   1.116 + 
   1.117 + #if GRAM_FILES_HAVE_TAB_SUFFIX
   1.118 +Index: syck-0.70/lib/yaml2byte.c
   1.119 +--- syck-0.70/lib/yaml2byte.c.orig	2009-09-30 19:29:34 +0200
   1.120 ++++ syck-0.70/lib/yaml2byte.c	2009-11-27 13:24:31 +0100
   1.121 +@@ -11,6 +11,8 @@
   1.122 +  */ 
   1.123 + #include "syck.h"
   1.124 + #include <assert.h>
   1.125 ++#include <stdlib.h>
   1.126 ++#include <string.h>
   1.127 + #define YAMLBYTE_UTF8
   1.128 + #include "yamlbyte.h"
   1.129 + 

mercurial