threads / patch / 31478

v2Document MKDIR_WO_TRAILING_SLASH in Makefile

Subject: [PATCH v2] Document MKDIR_WO_TRAILING_SLASH in Makefile

## tl;dr

One message between Sep 8, 2012 and Sep 8, 2012. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Joachim Schmitz· Sep 8, 2012, 17:01 UTC · lore
Signed-off-by: Joachim Schmitz <jojo@schmitz-digital.de>
---
Makefile | 6 ++++++
 1 file changed, 6 insertions(+)
Show changes to Makefile +6 −0
diff --git a/Makefile b/Makefile
index 66e8216..21b4816 100644
--- a/Makefile
+++ b/Makefile
@@ -90,6 +90,8 @@ all::
 #
 # Define NO_MKDTEMP if you don't have mkdtemp in the C library.
 #
+# Define MKDIR_WO_TRAILING_SLASH if your mkdir() can't deal with trailing slash.
+#
 # 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.
@@ -1639,6 +1641,10 @@ ifdef NO_MKDTEMP
 	COMPAT_CFLAGS += -DNO_MKDTEMP
 	COMPAT_OBJS += compat/mkdtemp.o
 endif
+ifdef MKDIR_WO_TRAILING_SLASH
+	COMPAT_CFLAGS += -DMKDIR_WO_TRAILING_SLASH
+	COMPAT_OBJS += compat/mkdir.o
+endif
 ifdef NO_MKSTEMPS
 	COMPAT_CFLAGS += -DNO_MKSTEMPS
 endif
-- 
1.7.12

← back to recent threads