aboutsummaryrefslogtreecommitdiffstats
path: root/src/filelock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/filelock.c')
-rw-r--r--src/filelock.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/filelock.c b/src/filelock.c
index bc3a6209a8d..8aaa656438d 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -53,6 +53,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
53#include "w32.h" /* for dostounix_filename */ 53#include "w32.h" /* for dostounix_filename */
54#endif 54#endif
55 55
56#ifndef MSDOS
57
56#ifdef HAVE_UTMP_H 58#ifdef HAVE_UTMP_H
57#include <utmp.h> 59#include <utmp.h>
58#endif 60#endif
@@ -742,6 +744,19 @@ unlock_file (Lisp_Object fn)
742 SAFE_FREE (); 744 SAFE_FREE ();
743} 745}
744 746
747#else /* MSDOS */
748void
749lock_file (Lisp_Object fn)
750{
751}
752
753void
754unlock_file (Lisp_Object fn)
755{
756}
757
758#endif /* MSDOS */
759
745void 760void
746unlock_all_files (void) 761unlock_all_files (void)
747{ 762{
@@ -805,6 +820,9 @@ The value is nil if the FILENAME is not locked,
805t if it is locked by you, else a string saying which user has locked it. */) 820t if it is locked by you, else a string saying which user has locked it. */)
806 (Lisp_Object filename) 821 (Lisp_Object filename)
807{ 822{
823#ifdef MSDOS
824 return Qnil;
825#else
808 Lisp_Object ret; 826 Lisp_Object ret;
809 char *lfname; 827 char *lfname;
810 int owner; 828 int owner;
@@ -825,6 +843,7 @@ t if it is locked by you, else a string saying which user has locked it. */)
825 843
826 SAFE_FREE (); 844 SAFE_FREE ();
827 return ret; 845 return ret;
846#endif
828} 847}
829 848
830void 849void