Skip to content

Commit e15f390

Browse files
committed
Merge branch 'js/compat-mkdir'
Finishing touches to recently added wrapper for mkdir() that do not want to see trailing slashes. * js/compat-mkdir: Document MKDIR_WO_TRAILING_SLASH in Makefile
2 parents cd82e58 + dc9f462 commit e15f390

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ all::
9090
#
9191
# Define NO_MKDTEMP if you don't have mkdtemp in the C library.
9292
#
93+
# Define MKDIR_WO_TRAILING_SLASH if your mkdir() can't deal with trailing slash.
94+
#
9395
# Define NO_MKSTEMPS if you don't have mkstemps in the C library.
9496
#
9597
# Define NO_STRTOK_R if you don't have strtok_r in the C library.
@@ -1640,6 +1642,10 @@ ifdef NO_MKDTEMP
16401642
COMPAT_CFLAGS += -DNO_MKDTEMP
16411643
COMPAT_OBJS += compat/mkdtemp.o
16421644
endif
1645+
ifdef MKDIR_WO_TRAILING_SLASH
1646+
COMPAT_CFLAGS += -DMKDIR_WO_TRAILING_SLASH
1647+
COMPAT_OBJS += compat/mkdir.o
1648+
endif
16431649
ifdef NO_MKSTEMPS
16441650
COMPAT_CFLAGS += -DNO_MKSTEMPS
16451651
endif

0 commit comments

Comments
 (0)