summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ctdb/include/ctdb_protocol.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ctdb/include/ctdb_protocol.h b/ctdb/include/ctdb_protocol.h
index 022a8fea3a3..327ca92cd35 100644
--- a/ctdb/include/ctdb_protocol.h
+++ b/ctdb/include/ctdb_protocol.h
@@ -21,7 +21,11 @@
#define _CTDB_PROTOCOL_H
/* location of daemon socket, set at configure time */
-#define CTDB_PATH SOCKPATH
+#ifdef SOCKPATH
+#define CTDB_PATH SOCKPATH
+#else
+#define CTDB_PATH "/tmp/ctdb.socket"
+#endif
/* default ctdb port number */
#define CTDB_PORT 4379