]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/patches/sed_msc.patch
Restore win32 dir from Branch-5.2 and update it
[bacula/bacula] / bacula / src / win32 / patches / sed_msc.patch
diff --git a/bacula/src/win32/patches/sed_msc.patch b/bacula/src/win32/patches/sed_msc.patch
new file mode 100644 (file)
index 0000000..b347e25
--- /dev/null
@@ -0,0 +1,927 @@
+diff -Nru ../release/sed-4.1.5/config_h.msc ./config_h.msc\r
+--- ../release/sed-4.1.5/config_h.msc  1969-12-31 16:00:00.000000000 -0800\r
++++ ./config_h.msc     2006-09-28 19:34:18.620414300 -0700\r
+@@ -0,0 +1,387 @@\r
++/* config_h.in.  Generated from configure.ac by autoheader. */\r
++/* config_h.msc.  Modified for Microsoft Visual Studio. */\r
++\r
++#define O_CREAT _O_CREAT\r
++#define O_EXCL _O_EXCL\r
++#define O_RDWR _O_RDWR\r
++\r
++#define popen _popen\r
++#define pclose _pclose\r
++#define alloca _alloca\r
++#define strcasecmp stricmp\r
++\r
++#define S_ISREG(x) (((x) & _S_IFMT) == _S_IFREG)\r
++\r
++#define HAVE_FCNTL_H 1\r
++\r
++/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP\r
++   systems. This function is required for `alloca.c' support on those systems.\r
++   */\r
++#undef CRAY_STACKSEG_END\r
++\r
++/* Define to 1 if using `alloca.c'. */\r
++#undef C_ALLOCA\r
++\r
++/* Define to 1 if translation of program messages to the user's native\r
++   language is requested. */\r
++#undef ENABLE_NLS\r
++\r
++/* Define to 1 if you have `alloca', as a function or macro. */\r
++#define HAVE_ALLOCA 1\r
++\r
++/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).\r
++   */\r
++#undef HAVE_ALLOCA_H\r
++\r
++/* Define to 1 if you have the <argz.h> header file. */\r
++#undef HAVE_ARGZ_H\r
++\r
++/* Define to 1 if you have the `bcopy' function. */\r
++#undef HAVE_BCOPY\r
++\r
++/* Define to 1 if you have the `btowc' function. */\r
++#undef HAVE_BTOWC\r
++\r
++/* Define to 1 if you have the `bzero' function. */\r
++#undef HAVE_BZERO\r
++\r
++/* Define if the GNU dcgettext() function is already present or preinstalled.\r
++   */\r
++#undef HAVE_DCGETTEXT\r
++\r
++/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.\r
++   */\r
++#define HAVE_DIRENT_H 1\r
++\r
++/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */\r
++#undef HAVE_DOPRNT\r
++\r
++/* Define to 1 if you have the <errno.h> header file. */\r
++#define HAVE_ERRNO_H 1\r
++\r
++/* Define to 1 if you have the `fchmod' function. */\r
++#undef HAVE_FCHMOD\r
++\r
++/* Define to 1 if you have the `fchown' function. */\r
++#undef HAVE_FCHOWN\r
++\r
++/* Define to 1 if you have the `feof_unlocked' function. */\r
++#undef HAVE_FEOF_UNLOCKED\r
++\r
++/* Define to 1 if you have the `fgets_unlocked' function. */\r
++#undef HAVE_FGETS_UNLOCKED\r
++\r
++/* Define to 1 if you have the `getcwd' function. */\r
++#define HAVE_GETCWD 1\r
++\r
++/* Define to 1 if you have the `getc_unlocked' function. */\r
++#undef HAVE_GETC_UNLOCKED\r
++\r
++/* Define to 1 if you have the `getegid' function. */\r
++#undef HAVE_GETEGID\r
++\r
++/* Define to 1 if you have the `geteuid' function. */\r
++#undef HAVE_GETEUID\r
++\r
++/* Define to 1 if you have the `getgid' function. */\r
++#undef HAVE_GETGID\r
++\r
++/* Define to 1 if you have the `getpagesize' function. */\r
++#undef HAVE_GETPAGESIZE\r
++\r
++/* Define if the GNU gettext() function is already present or preinstalled. */\r
++#undef HAVE_GETTEXT\r
++\r
++/* Define to 1 if you have the `getuid' function. */\r
++#undef HAVE_GETUID\r
++\r
++/* Define if you have the iconv() function. */\r
++#undef HAVE_ICONV\r
++\r
++/* Define to 1 if you have the <inttypes.h> header file. */\r
++#undef HAVE_INTTYPES_H\r
++\r
++/* Define to 1 if you have the <io.h> header file. */\r
++#define HAVE_IO_H 1\r
++\r
++/* Define to 1 if you have the `isascii' function. */\r
++#define HAVE_ISASCII 1\r
++\r
++/* Define to 1 if you have the `isatty' function. */\r
++#undef HAVE_ISATTY\r
++\r
++/* Define to 1 if you have the `isblank' function. */\r
++#undef HAVE_ISBLANK\r
++\r
++/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */\r
++#undef HAVE_LANGINFO_CODESET\r
++\r
++/* Define if your <locale.h> file defines LC_MESSAGES. */\r
++#define HAVE_LC_MESSAGES 1\r
++\r
++/* Define to 1 if you have the `regex' library (-lregex). */\r
++#undef HAVE_LIBREGEX\r
++\r
++/* Define to 1 if you have the <limits.h> header file. */\r
++#define HAVE_LIMITS_H 1\r
++\r
++/* Define to 1 if you have the <locale.h> header file. */\r
++#undef HAVE_LOCALE_H\r
++\r
++/* Define to 1 if you support file names longer than 14 characters. */\r
++#define HAVE_LONG_FILE_NAMES 1\r
++\r
++/* Define to 1 if you have the <malloc.h> header file. */\r
++#define HAVE_MALLOC_H 1\r
++\r
++/* Define to 1 if mbrtowc and mbstate_t are properly declared. */\r
++#undef HAVE_MBRTOWC\r
++\r
++/* Define to 1 if <wchar.h> declares mbstate_t. */\r
++#undef HAVE_MBSTATE_T\r
++\r
++/* Define to 1 if you have the <mcheck.h> header file. */\r
++#undef HAVE_MCHECK_H\r
++\r
++/* Define to 1 if you have the `memchr' function. */\r
++#define HAVE_MEMCHR 1\r
++\r
++/* Define to 1 if you have the `memcmp' function. */\r
++#define HAVE_MEMCMP 1\r
++\r
++/* Define to 1 if you have the `memcpy' function. */\r
++#define HAVE_MEMCPY 1\r
++\r
++/* Define to 1 if you have the `memmove' function. */\r
++#define HAVE_MEMMOVE 1\r
++\r
++/* Define to 1 if you have the <memory.h> header file. */\r
++#define HAVE_MEMORY_H 1\r
++\r
++/* Define to 1 if you have the `mempcpy' function. */\r
++#undef HAVE_MEMPCPY\r
++\r
++/* Define to 1 if you have the `memset' function. */\r
++#define HAVE_MEMSET 1\r
++\r
++/* Define to 1 if you have the `mkstemp' function. */\r
++#undef HAVE_MKSTEMP\r
++\r
++/* Define to 1 if you have a working `mmap' system call. */\r
++#undef HAVE_MMAP\r
++\r
++/* Define to 1 if you have the `munmap' function. */\r
++#undef HAVE_MUNMAP\r
++\r
++/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */\r
++#undef HAVE_NDIR_H\r
++\r
++/* Define to 1 if you have the <nl_types.h> header file. */\r
++#undef HAVE_NL_TYPES_H\r
++\r
++/* Define to 1 if libc includes obstacks. */\r
++#undef HAVE_OBSTACK\r
++\r
++/* Define to 1 if you have the `pathconf' function. */\r
++#undef HAVE_PATHCONF\r
++\r
++/* Define to 1 if you have the `popen' function. */\r
++#define HAVE_POPEN 1\r
++\r
++/* Define to 1 if you have the `putenv' function. */\r
++#define HAVE_PUTENV 1\r
++\r
++/* Define to 1 if you have the <regex.h> header file. */\r
++#undef HAVE_REGEX_H\r
++\r
++/* Define to 1 if you have the `setenv' function. */\r
++#define HAVE_SETENV 1\r
++\r
++/* Define to 1 if you have the `setlocale' function. */\r
++#undef HAVE_SETLOCALE\r
++\r
++/* Define to 1 if you have the <stdarg.h> header file. */\r
++#define HAVE_STDARG_H 1\r
++\r
++/* Define to 1 if stdbool.h conforms to C99. */\r
++#undef HAVE_STDBOOL_H\r
++\r
++/* Define to 1 if you have the <stddef.h> header file. */\r
++#define HAVE_STDDEF_H 1\r
++\r
++/* Define to 1 if you have the <stdint.h> header file. */\r
++#undef HAVE_STDINT_H\r
++\r
++/* Define to 1 if you have the <stdlib.h> header file. */\r
++#define HAVE_STDLIB_H 1\r
++\r
++/* Define to 1 if you have the `stpcpy' function. */\r
++#undef HAVE_STPCPY\r
++\r
++/* Define to 1 if you have the `strcasecmp' function. */\r
++#undef HAVE_STRCASECMP\r
++\r
++/* Define to 1 if you have the `strchr' function. */\r
++#define HAVE_STRCHR 1\r
++\r
++/* Define to 1 if you have the `strdup' function. */\r
++#define HAVE_STRDUP 1\r
++\r
++/* Define to 1 if you have the `strerror' function. */\r
++#define HAVE_STRERROR 1\r
++\r
++/* Define to 1 if you have the <strings.h> header file. */\r
++#undef HAVE_STRINGS_H\r
++\r
++/* Define to 1 if you have the <string.h> header file. */\r
++#define HAVE_STRING_H 1\r
++\r
++/* Define to 1 if you have the `strtoul' function. */\r
++#define HAVE_STRTOUL 1\r
++\r
++/* Define to 1 if you have the `strverscmp' function. */\r
++#undef HAVE_STRVERSCMP\r
++\r
++/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.\r
++   */\r
++#define HAVE_SYS_DIR_H 1\r
++\r
++/* Define to 1 if you have the <sys/file.h> header file. */\r
++#undef HAVE_SYS_FILE_H\r
++\r
++/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.\r
++   */\r
++#define HAVE_SYS_NDIR_H 1\r
++\r
++/* Define to 1 if you have the <sys/param.h> header file. */\r
++#define HAVE_SYS_PARAM_H 1\r
++\r
++/* Define to 1 if you have the <sys/stat.h> header file. */\r
++#define HAVE_SYS_STAT_H 1\r
++\r
++/* Define to 1 if you have the <sys/types.h> header file. */\r
++#define HAVE_SYS_TYPES_H 1\r
++\r
++/* Define to 1 if you have the `tsearch' function. */\r
++#define HAVE_TSEARCH 1\r
++\r
++/* Define to 1 if you have the <unistd.h> header file. */\r
++#undef HAVE_UNISTD_H\r
++\r
++/* Define to 1 if you have the `vprintf' function. */\r
++#define HAVE_VPRINTF 1\r
++\r
++/* Define to 1 if you have the <wchar.h> header file. */\r
++#undef HAVE_WCHAR_H\r
++\r
++/* Define to 1 if you have the `wcrtomb' function. */\r
++#undef HAVE_WCRTOMB\r
++\r
++/* Define to 1 if you have the `wcscoll' function. */\r
++#undef HAVE_WCSCOLL\r
++\r
++/* Define to 1 if you have the <wctype.h> header file. */\r
++#undef HAVE_WCTYPE_H\r
++\r
++/* Define to 1 if the system has the type `_Bool'. */\r
++#undef HAVE__BOOL\r
++\r
++/* Define to 1 if you have the `__argz_count' function. */\r
++#undef HAVE___ARGZ_COUNT\r
++\r
++/* Define to 1 if you have the `__argz_next' function. */\r
++#undef HAVE___ARGZ_NEXT\r
++\r
++/* Define to 1 if you have the `__argz_stringify' function. */\r
++#undef HAVE___ARGZ_STRINGIFY\r
++\r
++/* Define as const if the declaration of iconv() needs const. */\r
++#undef ICONV_CONST\r
++\r
++/* Name of package */\r
++#define PACKAGE "sed"\r
++\r
++/* Define to the address where bug reports for this package should be sent. */\r
++#undef PACKAGE_BUGREPORT\r
++\r
++/* Define to the full name of this package. */\r
++#undef PACKAGE_NAME\r
++\r
++/* Define to the full name and version of this package. */\r
++#undef PACKAGE_STRING\r
++\r
++/* Define to the one symbol short name of this package. */\r
++#undef PACKAGE_TARNAME\r
++\r
++/* Define to the version of this package. */\r
++#undef PACKAGE_VERSION\r
++\r
++/* Define to the version of GNU sed whose features are supported by this sed.\r
++   */\r
++#define SED_FEATURE_VERSION "5.1"\r
++\r
++/* If using the C implementation of alloca, define if you know the\r
++   direction of stack growth for your system; otherwise it will be\r
++   automatically deduced at run-time.\r
++      STACK_DIRECTION > 0 => grows toward higher addresses\r
++      STACK_DIRECTION < 0 => grows toward lower addresses\r
++      STACK_DIRECTION = 0 => direction of growth unknown */\r
++#undef STACK_DIRECTION\r
++\r
++/* Define to 1 if you have the ANSI C header files. */\r
++#define STDC_HEADERS 1\r
++\r
++/* Version number of package */\r
++#define VERSION "4.1.5"\r
++\r
++/* Define to 1 if on AIX 3.\r
++   System headers sometimes define this.\r
++   We just want to avoid a redefinition error message.  */\r
++#ifndef _ALL_SOURCE\r
++# undef _ALL_SOURCE\r
++#endif\r
++\r
++/* Number of bits in a file offset, on hosts where this is settable. */\r
++#undef _FILE_OFFSET_BITS\r
++\r
++/* Enable GNU extensions on systems that have them.  */\r
++#ifndef _GNU_SOURCE\r
++# undef _GNU_SOURCE\r
++#endif\r
++\r
++/* Define for large files, on AIX-style hosts. */\r
++#undef _LARGE_FILES\r
++\r
++/* Define to 1 if on MINIX. */\r
++#undef _MINIX\r
++\r
++/* Define to 2 if the system does not provide POSIX.1 features except with\r
++   this defined. */\r
++#undef _POSIX_1_SOURCE\r
++\r
++/* Define to 1 if you need to in order for `stat' and other things to work. */\r
++#undef _POSIX_SOURCE\r
++\r
++/* Include BSD functions in regex, used by the testsuite */\r
++#undef _REGEX_RE_COMP\r
++\r
++/* Define to empty if `const' does not conform to ANSI C. */\r
++#undef const\r
++\r
++/* Define to `__inline__' or `__inline' if that's what the C compiler\r
++   calls it, or to nothing if 'inline' is not supported under any name.  */\r
++#ifndef __cplusplus\r
++#define inline __inline\r
++#endif\r
++\r
++/* Define to a type if <wchar.h> does not define. */\r
++#define mbstate_t int\r
++\r
++/* Define to `long' if <sys/types.h> does not define. */\r
++#undef off_t\r
++\r
++/* Define to `unsigned' if <sys/types.h> does not define. */\r
++#undef size_t\r
++\r
++/* Define to `int' if <sys/types.h> does not define. */\r
++#undef ssize_t\r
+diff -Nru ../release/sed-4.1.5/config_h.msc~ ./config_h.msc~\r
+--- ../release/sed-4.1.5/config_h.msc~ 1969-12-31 16:00:00.000000000 -0800\r
++++ ./config_h.msc~    2006-09-28 13:56:59.922178500 -0700\r
+@@ -0,0 +1,386 @@\r
++/* config_h.in.  Generated from configure.ac by autoheader.  */\r
++\r
++#define O_CREAT _O_CREAT\r
++#define O_EXCL _O_EXCL\r
++#define O_RDWR _O_RDWR\r
++\r
++#define popen _popen\r
++#define pclose _pclose\r
++#define alloca _alloca\r
++#define strcasecmp stricmp\r
++\r
++#define S_ISREG(x) (((x) & _S_IFMT) == _S_IFREG)\r
++\r
++#define HAVE_FCNTL_H 1\r
++\r
++/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP\r
++   systems. This function is required for `alloca.c' support on those systems.\r
++   */\r
++#undef CRAY_STACKSEG_END\r
++\r
++/* Define to 1 if using `alloca.c'. */\r
++#undef C_ALLOCA\r
++\r
++/* Define to 1 if translation of program messages to the user's native\r
++   language is requested. */\r
++#undef ENABLE_NLS\r
++\r
++/* Define to 1 if you have `alloca', as a function or macro. */\r
++#define HAVE_ALLOCA 1\r
++\r
++/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).\r
++   */\r
++#undef HAVE_ALLOCA_H\r
++\r
++/* Define to 1 if you have the <argz.h> header file. */\r
++#undef HAVE_ARGZ_H\r
++\r
++/* Define to 1 if you have the `bcopy' function. */\r
++#undef HAVE_BCOPY\r
++\r
++/* Define to 1 if you have the `btowc' function. */\r
++#undef HAVE_BTOWC\r
++\r
++/* Define to 1 if you have the `bzero' function. */\r
++#undef HAVE_BZERO\r
++\r
++/* Define if the GNU dcgettext() function is already present or preinstalled.\r
++   */\r
++#undef HAVE_DCGETTEXT\r
++\r
++/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.\r
++   */\r
++#define HAVE_DIRENT_H 1\r
++\r
++/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */\r
++#undef HAVE_DOPRNT\r
++\r
++/* Define to 1 if you have the <errno.h> header file. */\r
++#define HAVE_ERRNO_H 1\r
++\r
++/* Define to 1 if you have the `fchmod' function. */\r
++#undef HAVE_FCHMOD\r
++\r
++/* Define to 1 if you have the `fchown' function. */\r
++#undef HAVE_FCHOWN\r
++\r
++/* Define to 1 if you have the `feof_unlocked' function. */\r
++#undef HAVE_FEOF_UNLOCKED\r
++\r
++/* Define to 1 if you have the `fgets_unlocked' function. */\r
++#undef HAVE_FGETS_UNLOCKED\r
++\r
++/* Define to 1 if you have the `getcwd' function. */\r
++#define HAVE_GETCWD 1\r
++\r
++/* Define to 1 if you have the `getc_unlocked' function. */\r
++#undef HAVE_GETC_UNLOCKED\r
++\r
++/* Define to 1 if you have the `getegid' function. */\r
++#undef HAVE_GETEGID\r
++\r
++/* Define to 1 if you have the `geteuid' function. */\r
++#undef HAVE_GETEUID\r
++\r
++/* Define to 1 if you have the `getgid' function. */\r
++#undef HAVE_GETGID\r
++\r
++/* Define to 1 if you have the `getpagesize' function. */\r
++#undef HAVE_GETPAGESIZE\r
++\r
++/* Define if the GNU gettext() function is already present or preinstalled. */\r
++#undef HAVE_GETTEXT\r
++\r
++/* Define to 1 if you have the `getuid' function. */\r
++#undef HAVE_GETUID\r
++\r
++/* Define if you have the iconv() function. */\r
++#undef HAVE_ICONV\r
++\r
++/* Define to 1 if you have the <inttypes.h> header file. */\r
++#undef HAVE_INTTYPES_H\r
++\r
++/* Define to 1 if you have the <io.h> header file. */\r
++#define HAVE_IO_H 1\r
++\r
++/* Define to 1 if you have the `isascii' function. */\r
++#define HAVE_ISASCII 1\r
++\r
++/* Define to 1 if you have the `isatty' function. */\r
++#undef HAVE_ISATTY\r
++\r
++/* Define to 1 if you have the `isblank' function. */\r
++#undef HAVE_ISBLANK\r
++\r
++/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */\r
++#undef HAVE_LANGINFO_CODESET\r
++\r
++/* Define if your <locale.h> file defines LC_MESSAGES. */\r
++#define HAVE_LC_MESSAGES 1\r
++\r
++/* Define to 1 if you have the `regex' library (-lregex). */\r
++#undef HAVE_LIBREGEX\r
++\r
++/* Define to 1 if you have the <limits.h> header file. */\r
++#define HAVE_LIMITS_H 1\r
++\r
++/* Define to 1 if you have the <locale.h> header file. */\r
++#undef HAVE_LOCALE_H\r
++\r
++/* Define to 1 if you support file names longer than 14 characters. */\r
++#define HAVE_LONG_FILE_NAMES 1\r
++\r
++/* Define to 1 if you have the <malloc.h> header file. */\r
++#define HAVE_MALLOC_H 1\r
++\r
++/* Define to 1 if mbrtowc and mbstate_t are properly declared. */\r
++#undef HAVE_MBRTOWC\r
++\r
++/* Define to 1 if <wchar.h> declares mbstate_t. */\r
++#undef HAVE_MBSTATE_T\r
++\r
++/* Define to 1 if you have the <mcheck.h> header file. */\r
++#undef HAVE_MCHECK_H\r
++\r
++/* Define to 1 if you have the `memchr' function. */\r
++#define HAVE_MEMCHR 1\r
++\r
++/* Define to 1 if you have the `memcmp' function. */\r
++#define HAVE_MEMCMP 1\r
++\r
++/* Define to 1 if you have the `memcpy' function. */\r
++#define HAVE_MEMCPY 1\r
++\r
++/* Define to 1 if you have the `memmove' function. */\r
++#define HAVE_MEMMOVE 1\r
++\r
++/* Define to 1 if you have the <memory.h> header file. */\r
++#define HAVE_MEMORY_H 1\r
++\r
++/* Define to 1 if you have the `mempcpy' function. */\r
++#undef HAVE_MEMPCPY\r
++\r
++/* Define to 1 if you have the `memset' function. */\r
++#define HAVE_MEMSET 1\r
++\r
++/* Define to 1 if you have the `mkstemp' function. */\r
++#undef HAVE_MKSTEMP\r
++\r
++/* Define to 1 if you have a working `mmap' system call. */\r
++#undef HAVE_MMAP\r
++\r
++/* Define to 1 if you have the `munmap' function. */\r
++#undef HAVE_MUNMAP\r
++\r
++/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */\r
++#undef HAVE_NDIR_H\r
++\r
++/* Define to 1 if you have the <nl_types.h> header file. */\r
++#undef HAVE_NL_TYPES_H\r
++\r
++/* Define to 1 if libc includes obstacks. */\r
++#undef HAVE_OBSTACK\r
++\r
++/* Define to 1 if you have the `pathconf' function. */\r
++#undef HAVE_PATHCONF\r
++\r
++/* Define to 1 if you have the `popen' function. */\r
++#define HAVE_POPEN 1\r
++\r
++/* Define to 1 if you have the `putenv' function. */\r
++#define HAVE_PUTENV 1\r
++\r
++/* Define to 1 if you have the <regex.h> header file. */\r
++#undef HAVE_REGEX_H\r
++\r
++/* Define to 1 if you have the `setenv' function. */\r
++#define HAVE_SETENV 1\r
++\r
++/* Define to 1 if you have the `setlocale' function. */\r
++#undef HAVE_SETLOCALE\r
++\r
++/* Define to 1 if you have the <stdarg.h> header file. */\r
++#define HAVE_STDARG_H 1\r
++\r
++/* Define to 1 if stdbool.h conforms to C99. */\r
++#undef HAVE_STDBOOL_H\r
++\r
++/* Define to 1 if you have the <stddef.h> header file. */\r
++#define HAVE_STDDEF_H 1\r
++\r
++/* Define to 1 if you have the <stdint.h> header file. */\r
++#undef HAVE_STDINT_H\r
++\r
++/* Define to 1 if you have the <stdlib.h> header file. */\r
++#define HAVE_STDLIB_H 1\r
++\r
++/* Define to 1 if you have the `stpcpy' function. */\r
++#undef HAVE_STPCPY\r
++\r
++/* Define to 1 if you have the `strcasecmp' function. */\r
++#undef HAVE_STRCASECMP\r
++\r
++/* Define to 1 if you have the `strchr' function. */\r
++#define HAVE_STRCHR 1\r
++\r
++/* Define to 1 if you have the `strdup' function. */\r
++#define HAVE_STRDUP 1\r
++\r
++/* Define to 1 if you have the `strerror' function. */\r
++#define HAVE_STRERROR 1\r
++\r
++/* Define to 1 if you have the <strings.h> header file. */\r
++#undef HAVE_STRINGS_H\r
++\r
++/* Define to 1 if you have the <string.h> header file. */\r
++#define HAVE_STRING_H 1\r
++\r
++/* Define to 1 if you have the `strtoul' function. */\r
++#define HAVE_STRTOUL 1\r
++\r
++/* Define to 1 if you have the `strverscmp' function. */\r
++#undef HAVE_STRVERSCMP\r
++\r
++/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.\r
++   */\r
++#define HAVE_SYS_DIR_H 1\r
++\r
++/* Define to 1 if you have the <sys/file.h> header file. */\r
++#undef HAVE_SYS_FILE_H\r
++\r
++/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.\r
++   */\r
++#define HAVE_SYS_NDIR_H 1\r
++\r
++/* Define to 1 if you have the <sys/param.h> header file. */\r
++#define HAVE_SYS_PARAM_H 1\r
++\r
++/* Define to 1 if you have the <sys/stat.h> header file. */\r
++#define HAVE_SYS_STAT_H 1\r
++\r
++/* Define to 1 if you have the <sys/types.h> header file. */\r
++#define HAVE_SYS_TYPES_H 1\r
++\r
++/* Define to 1 if you have the `tsearch' function. */\r
++#define HAVE_TSEARCH 1\r
++\r
++/* Define to 1 if you have the <unistd.h> header file. */\r
++#undef HAVE_UNISTD_H\r
++\r
++/* Define to 1 if you have the `vprintf' function. */\r
++#define HAVE_VPRINTF 1\r
++\r
++/* Define to 1 if you have the <wchar.h> header file. */\r
++#undef HAVE_WCHAR_H\r
++\r
++/* Define to 1 if you have the `wcrtomb' function. */\r
++#undef HAVE_WCRTOMB\r
++\r
++/* Define to 1 if you have the `wcscoll' function. */\r
++#undef HAVE_WCSCOLL\r
++\r
++/* Define to 1 if you have the <wctype.h> header file. */\r
++#undef HAVE_WCTYPE_H\r
++\r
++/* Define to 1 if the system has the type `_Bool'. */\r
++#undef HAVE__BOOL\r
++\r
++/* Define to 1 if you have the `__argz_count' function. */\r
++#undef HAVE___ARGZ_COUNT\r
++\r
++/* Define to 1 if you have the `__argz_next' function. */\r
++#undef HAVE___ARGZ_NEXT\r
++\r
++/* Define to 1 if you have the `__argz_stringify' function. */\r
++#undef HAVE___ARGZ_STRINGIFY\r
++\r
++/* Define as const if the declaration of iconv() needs const. */\r
++#undef ICONV_CONST\r
++\r
++/* Name of package */\r
++#define PACKAGE "sed"\r
++\r
++/* Define to the address where bug reports for this package should be sent. */\r
++#undef PACKAGE_BUGREPORT\r
++\r
++/* Define to the full name of this package. */\r
++#undef PACKAGE_NAME\r
++\r
++/* Define to the full name and version of this package. */\r
++#undef PACKAGE_STRING\r
++\r
++/* Define to the one symbol short name of this package. */\r
++#undef PACKAGE_TARNAME\r
++\r
++/* Define to the version of this package. */\r
++#undef PACKAGE_VERSION\r
++\r
++/* Define to the version of GNU sed whose features are supported by this sed.\r
++   */\r
++#define SED_FEATURE_VERSION "5.1"\r
++\r
++/* If using the C implementation of alloca, define if you know the\r
++   direction of stack growth for your system; otherwise it will be\r
++   automatically deduced at run-time.\r
++      STACK_DIRECTION > 0 => grows toward higher addresses\r
++      STACK_DIRECTION < 0 => grows toward lower addresses\r
++      STACK_DIRECTION = 0 => direction of growth unknown */\r
++#undef STACK_DIRECTION\r
++\r
++/* Define to 1 if you have the ANSI C header files. */\r
++#define STDC_HEADERS 1\r
++\r
++/* Version number of package */\r
++#define VERSION "4.1.5"\r
++\r
++/* Define to 1 if on AIX 3.\r
++   System headers sometimes define this.\r
++   We just want to avoid a redefinition error message.  */\r
++#ifndef _ALL_SOURCE\r
++# undef _ALL_SOURCE\r
++#endif\r
++\r
++/* Number of bits in a file offset, on hosts where this is settable. */\r
++#undef _FILE_OFFSET_BITS\r
++\r
++/* Enable GNU extensions on systems that have them.  */\r
++#ifndef _GNU_SOURCE\r
++# undef _GNU_SOURCE\r
++#endif\r
++\r
++/* Define for large files, on AIX-style hosts. */\r
++#undef _LARGE_FILES\r
++\r
++/* Define to 1 if on MINIX. */\r
++#undef _MINIX\r
++\r
++/* Define to 2 if the system does not provide POSIX.1 features except with\r
++   this defined. */\r
++#undef _POSIX_1_SOURCE\r
++\r
++/* Define to 1 if you need to in order for `stat' and other things to work. */\r
++#undef _POSIX_SOURCE\r
++\r
++/* Include BSD functions in regex, used by the testsuite */\r
++#undef _REGEX_RE_COMP\r
++\r
++/* Define to empty if `const' does not conform to ANSI C. */\r
++#undef const\r
++\r
++/* Define to `__inline__' or `__inline' if that's what the C compiler\r
++   calls it, or to nothing if 'inline' is not supported under any name.  */\r
++#ifndef __cplusplus\r
++#define inline __inline\r
++#endif\r
++\r
++/* Define to a type if <wchar.h> does not define. */\r
++#define mbstate_t int\r
++\r
++/* Define to `long' if <sys/types.h> does not define. */\r
++#undef off_t\r
++\r
++/* Define to `unsigned' if <sys/types.h> does not define. */\r
++#undef size_t\r
++\r
++/* Define to `int' if <sys/types.h> does not define. */\r
++#undef ssize_t\r
+diff -Nru ../release/sed-4.1.5/lib/Makefile.msc ./lib/Makefile.msc\r
+--- ../release/sed-4.1.5/lib/Makefile.msc      1969-12-31 16:00:00.000000000 -0800\r
++++ ./lib/Makefile.msc 2006-09-28 19:10:18.880835600 -0700\r
+@@ -0,0 +1,20 @@\r
++SOURCES=getline.c getopt.c getopt1.c mkstemp.c obstack.c regex.c strverscmp.c utils.c\r
++\r
++OBJECTS=$(SOURCES:.c=.obj)\r
++\r
++CFLAGS=-I.. -I. -DBOOTSTRAP -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DHAVE_CONFIG_H \r
++\r
++all : libsed.lib\r
++\r
++install :\r
++\r
++clean :\r
++      del $(OBJECTS) regex.h libsed.lib *~ 2>nul\r
++\r
++regex.h : regex_.h\r
++      copy /b $**+nul $@\r
++\r
++$(OBJECTS) : ..\config.h\r
++\r
++libsed.lib : regex.h $(OBJECTS)\r
++      lib /out:$@ $(OBJECTS)\r
+diff -Nru ../release/sed-4.1.5/lib/regcomp.c ./lib/regcomp.c\r
+--- ../release/sed-4.1.5/lib/regcomp.c 2005-12-06 00:46:51.000000000 -0800\r
++++ ./lib/regcomp.c    2006-09-28 04:36:14.084476200 -0700\r
+@@ -506,11 +506,7 @@\r
+    from either regcomp or regexec.   We don't use PREG here.  */\r
\r
+ size_t\r
+-regerror (errcode, preg, errbuf, errbuf_size)\r
+-    int errcode;\r
+-    const regex_t *__restrict preg;\r
+-    char *__restrict errbuf;\r
+-    size_t errbuf_size;\r
++regerror (int errcode, const regex_t *__restrict preg, char *__restrict errbuf, size_t errbuf_size)\r
+ {\r
+   const char *msg;\r
+   size_t msg_size;\r
+diff -Nru ../release/sed-4.1.5/lib/regex_internal.h ./lib/regex_internal.h\r
+--- ../release/sed-4.1.5/lib/regex_internal.h  2005-12-06 00:50:56.000000000 -0800\r
++++ ./lib/regex_internal.h     2006-09-28 04:33:10.987210800 -0700\r
+@@ -410,7 +410,9 @@\r
+ #define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))\r
+ #define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx))\r
\r
++#ifdef HAVE_ALLOCA_H\r
+ #include <alloca.h>\r
++#endif\r
\r
+ #ifndef _LIBC\r
+ # if HAVE_ALLOCA\r
+diff -Nru ../release/sed-4.1.5/lib/regexec.c ./lib/regexec.c\r
+--- ../release/sed-4.1.5/lib/regexec.c 2005-12-06 00:46:56.000000000 -0800\r
++++ ./lib/regexec.c    2006-09-28 04:50:51.101314600 -0700\r
+@@ -18,6 +18,12 @@\r
+    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA\r
+    02111-1307 USA.  */\r
\r
++#ifdef BOOTSTRAP\r
++#define bool int\r
++#define true 1\r
++#define false 0\r
++#endif\r
++\r
+ static reg_errcode_t match_ctx_init (re_match_context_t *cache, int eflags,\r
+                                    int n) internal_function;\r
+ static void match_ctx_clean (re_match_context_t *mctx) internal_function;\r
+@@ -2894,7 +2900,7 @@\r
+             sizeof (re_dfastate_t *) * (path->alloc - old_alloc));\r
+     }\r
\r
+-  str_idx = path->next_idx ?: top_str;\r
++  str_idx = path->next_idx ? path->next_idx : top_str;\r
\r
+   /* Temporary modify MCTX.  */\r
+   backup_state_log = mctx->state_log;\r
+diff -Nru ../release/sed-4.1.5/Makefile.msc ./Makefile.msc\r
+--- ../release/sed-4.1.5/Makefile.msc  1969-12-31 16:00:00.000000000 -0800\r
++++ ./Makefile.msc     2006-09-28 19:10:18.552737900 -0700\r
+@@ -0,0 +1,17 @@\r
++DIRS=lib sed\r
++\r
++all : config.h\r
++\r
++dummy_target :\r
++\r
++install : dummy_target\r
++\r
++all install :\r
++      @for %%i in ( $(DIRS) ) do @( cd %%i & nmake /nologo -f Makefile.msc $@ & cd .. )\r
++\r
++clean :\r
++      del config.h *~ 2>nul\r
++      @for %%i in ( $(DIRS) ) do @( cd %%i & nmake /nologo -f Makefile.msc $@ & cd .. )\r
++\r
++config.h : config_h.msc\r
++      copy /b $**+nul $@\r
+diff -Nru ../release/sed-4.1.5/sed/compile.c ./sed/compile.c\r
+--- ../release/sed-4.1.5/sed/compile.c 2006-02-03 01:06:26.000000000 -0800\r
++++ ./sed/compile.c    2006-09-28 05:48:12.636140800 -0700\r
+@@ -451,9 +451,7 @@\r
\r
+ static int snarf_char_class P_((struct buffer *b, mbstate_t *cur_stat));\r
+ static int\r
+-snarf_char_class(b, cur_stat)\r
+-  struct buffer *b;\r
+-  mbstate_t *cur_stat;\r
++snarf_char_class(struct buffer *b, mbstate_t *cur_stat)\r
+ {\r
+   int ch;\r
+   int state = 0;\r
+@@ -531,9 +529,7 @@\r
\r
+ static struct buffer *match_slash P_((int slash, bool regex));\r
+ static struct buffer *\r
+-match_slash(slash, regex)\r
+-  int slash;\r
+-  bool regex;\r
++match_slash(int slash, bool regex)\r
+ {\r
+   struct buffer *b;\r
+   int ch;\r
+diff -Nru ../release/sed-4.1.5/sed/Makefile.msc ./sed/Makefile.msc\r
+--- ../release/sed-4.1.5/sed/Makefile.msc      1969-12-31 16:00:00.000000000 -0800\r
++++ ./sed/Makefile.msc 2006-09-28 19:10:19.193309600 -0700\r
+@@ -0,0 +1,18 @@\r
++SOURCES=sed.c compile.c execute.c regexp.c fmt.c mbcs.c\r
++\r
++OBJECTS=$(SOURCES:.c=.obj)\r
++\r
++CFLAGS=-I.. -I. -I../lib -DBOOTSTRAP -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DHAVE_CONFIG_H \r
++\r
++all : sed.exe\r
++\r
++install :\r
++      copy sed.exe ..\..\..\bin\r
++\r
++clean :\r
++      del $(OBJECTS) sed.exe *~ 2>nul\r
++\r
++$(OBJECTS) : ..\config.h\r
++\r
++sed.exe : $(OBJECTS)\r
++      link /out:sed.exe /subsystem:console /opt:ref $(OBJECTS) ..\lib\libsed.lib\r