Skip to content

Commit 98a7224

Browse files
committed
squash! mingw: use MSys2's libgen.h
mingw-w64-crt provides a basename() function, but it does not do what we want. For example, it shortens `path0/` to `path`! So let's not use it (i.e. let's revert commit 00bc8c9). This fixes #494
1 parent 28413c7 commit 98a7224

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

config.mak.uname

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
490490
HAVE_ALLOCA_H = YesPlease
491491
NO_PREAD = YesPlease
492492
NEEDS_CRYPTO_WITH_SSL = YesPlease
493+
NO_LIBGEN_H = YesPlease
493494
NO_POLL = YesPlease
494495
NO_SYMLINK_HEAD = YesPlease
495496
NO_UNIX_SOCKETS = YesPlease
@@ -540,7 +541,6 @@ ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
540541
HAVE_LIBCHARSET_H = YesPlease
541542
NO_GETTEXT = YesPlease
542543
COMPAT_CLFAGS += -D__USE_MINGW_ACCESS
543-
NO_LIBGEN_H = YesPlease
544544
else
545545
ifeq ($(shell expr "$(uname_R)" : '2\.'),2)
546546
# MSys2
@@ -570,7 +570,6 @@ else
570570
else
571571
COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO
572572
NO_CURL = YesPlease
573-
NO_LIBGEN_H = YesPlease
574573
endif
575574
OTHER_PROGRAMS += git-wrapper$(X)
576575
BUILT_IN_WRAPPER = git-wrapper$(X)

0 commit comments

Comments
 (0)