aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/dotlock.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--jnlib/dotlock.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/jnlib/dotlock.c b/jnlib/dotlock.c
index 7240fafeb..a50a0ee99 100644
--- a/jnlib/dotlock.c
+++ b/jnlib/dotlock.c
@@ -37,6 +37,22 @@
#include "libjnlib-config.h"
#include "dotlock.h"
+#if !defined(DIRSEP_C) && !defined(EXTSEP_C) \
+ && !defined(DIRSEP_S) && !defined(EXTSEP_S)
+#ifdef HAVE_DOSISH_SYSTEM
+#define DIRSEP_C '\\'
+#define EXTSEP_C '.'
+#define DIRSEP_S "\\"
+#define EXTSEP_S "."
+#else
+#define DIRSEP_C '/'
+#define EXTSEP_C '.'
+#define DIRSEP_S "/"
+#define EXTSEP_S "."
+#endif
+#endif
+
+
struct dotlock_handle {
struct dotlock_handle *next;
char *tname; /* name of lockfile template */