aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/dotlock.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-11-17 12:20:11 +0000
committerWerner Koch <[email protected]>2003-11-17 12:20:11 +0000
commitfbb2d9de15df27c26a1c17fbd714c54597e92677 (patch)
tree1db0b1145a5113c06cb88aefcf6d610f1804570d /jnlib/dotlock.c
parent2003-11-16 Moritz Schulte <[email protected]> (diff)
downloadgnupg-fbb2d9de15df27c26a1c17fbd714c54597e92677.tar.gz
gnupg-fbb2d9de15df27c26a1c17fbd714c54597e92677.zip
Preparing for 1.9.2 release.V1-9-2
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 */