summaryrefslogtreecommitdiff
path: root/usr.bin/chat/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/chat/chat.c')
-rw-r--r--usr.bin/chat/chat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/chat/chat.c b/usr.bin/chat/chat.c
index 553b7d46759d..6c85882e7129 100644
--- a/usr.bin/chat/chat.c
+++ b/usr.bin/chat/chat.c
@@ -78,7 +78,7 @@ extern int strlen();
# ifdef HDB
# define LOCK_DIR "/usr/spool/locks"
# else /* HDB */
-# define LOCK_DIR "/usr/spool/uucp"
+# define LOCK_DIR "/var/spool/lock"
# endif /* HDB */
#endif /* LOCK_DIR */
@@ -361,7 +361,7 @@ lock()
sysfatal("Can't get lock file '%s'", s);
}
-# ifdef HDB
+# if defined(HDB) || defined(__FreeBSD__)
sprintf(hdb_lock_buffer, "%10d\n", getpid());
write(fd, hdb_lock_buffer, 11);
# else /* HDB */