]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/patches/sed.patch
Restore win32 dir from Branch-5.2 and update it
[bacula/bacula] / bacula / src / win32 / patches / sed.patch
diff --git a/bacula/src/win32/patches/sed.patch b/bacula/src/win32/patches/sed.patch
new file mode 100644 (file)
index 0000000..a599cb3
--- /dev/null
@@ -0,0 +1,15 @@
+Index: regex_internal.h
+--- ../released/sed-4.1.5/lib/regex_internal.h 2005-12-06 00:50:56.000000000 -0800
++++ ./lib/regex_internal.h     2006-08-31 02:24:05.000000000 -0700
+@@ -410,7 +410,11 @@
+ #define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
+ #define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx))
++#if defined(WIN32)
++#include <malloc.h>
++#else
+ #include <alloca.h>
++#endif
+ #ifndef _LIBC
+ # if HAVE_ALLOCA