Re: jn/svn-fe
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Aug 13, 2010, 10:18 UTC
- Message-ID
- <m3lj8a3jfo.fsf@localhost.localdomain>
- In-Reply-To
- <20100813000848.GA8076@burratino>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 41 quoted lines
> How about something like this instead? > > -- 8< -- > Subject: vcs-svn: Port to Windows > > MSys #define-s dirent away. Avoid trouble by avoiding that > identifier. > > Windows does not have strtok_r (and while does have an identical > strtok_s, but it is not obvious how to use it). Grab an > implementation from glibc. > > The svn-fe test fails in the “svn export” step because of the > lack of symlink support. With a less ambitious dump, it passes. > > Cc: Johannes Sixt <j6t@kdbg.org> > Cc: Ramkumar Ramachandra <artagnon@gmail.com> > Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> > --- > Makefile | 8 ++ > compat/strtok_r.c | 61 ++++++++++++++++ > git-compat-util.h | 5 ++ > t/t9010-svn-fe.sh | 4 +- > vcs-svn/fast_export.c | 4 +- > vcs-svn/repo_tree.c | 188 ++++++++++++++++++++++++------------------------ > 6 files changed, 172 insertions(+), 98 deletions(-) > create mode 100644 compat/strtok_r.c > > diff --git a/Makefile b/Makefile > index c441414..444a0fe 100644 > --- a/Makefile > +++ b/Makefile > @@ -68,6 +68,8 @@ all:: > # > # Define NO_MKSTEMPS if you don't have mkstemps in the C library. > # > +# Define NO_STRTOK_R if you don't have strtok_r in the C library. > +# > # Define NO_LIBGEN_H if you don't have libgen.h. > # > # Define NEEDS_LIBGEN if your libgen needs -lgen when linking
You are missing autodetection by autoconf, i.e. changes to config.mak.in and to configure.ac
# # Define NO_STRTOK_R if you don't have strtok_r in the C library. GIT_CHECK_FUNC(strtok_r, [NO_STRTOK_R=], [NO_STRTOK_R=YesPlease]) AC_SUBST(NO_STRTOK_R)
-- Jakub Narebski Poland ShadeHawk on #git