summaryrefslogtreecommitdiff
path: root/src/filelock.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-05-01 18:09:29 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-05-01 18:09:29 -0700
commitc3ed7cea0a43ab86c9d3b1627878055844bc8656 (patch)
tree4a46db8032e1b359be5284822828d12814d96e27 /src/filelock.c
parent07fafe1edbba4a5eecbe133313b2eb6ec15e5c55 (diff)
parent16e5e8e4ea4ad46157fcdeafb16f245124fba375 (diff)
downloademacs-c3ed7cea0a43ab86c9d3b1627878055844bc8656.tar.gz
Merge from origin/emacs-25
16e5e8e Fix last change to isearch-update (bug#23406) b755d98 Autoload cursor-sensor-inhibit (bug#23406) b52ebd4 org-map-entries: Fix org-agenda-prepare-buffers call 86aa409 Followup for last commit in the user manual 7004459 Improve doc string of 'set-goal-column' ccdaf04 Fix the MSDOS build ffe701c Remove \= from format string (bug#18190) 1c58fa1 Fix variable-pitch font on MS-Windows c6077bf Restore follow-scroll-up/down to scrolling by the combined si... b671e21 Revert unneeded change which harms syntactic parsing. This f... 48b24c9 Correct indentation of ids in a C++ enum after a protection k... 5c3534f * lisp/window.el (window--process-window-list): No-op if no p... 734fb3a Port dumping to NetBSD with PaX 0255a70 Don't mistake `for' inside a function for a part of array com... # Conflicts: # src/Makefile.in
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 6db6daa3bba..62017188b33 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/>. */
#include "w32.h" /* for dostounix_filename */
#endif
+#ifndef MSDOS
+
#ifdef HAVE_UTMP_H
#include <utmp.h>
#endif
@@ -732,6 +734,19 @@ unlock_file (Lisp_Object fn)
SAFE_FREE ();
}
+#else /* MSDOS */
+void
+lock_file (Lisp_Object fn)
+{
+}
+
+void
+unlock_file (Lisp_Object fn)
+{
+}
+
+#endif /* MSDOS */
+
void
unlock_all_files (void)
{
@@ -795,6 +810,9 @@ The value is nil if the FILENAME is not locked,
t if it is locked by you, else a string saying which user has locked it. */)
(Lisp_Object filename)
{
+#ifdef MSDOS
+ return Qnil;
+#else
Lisp_Object ret;
char *lfname;
int owner;
@@ -815,6 +833,7 @@ t if it is locked by you, else a string saying which user has locked it. */)
SAFE_FREE ();
return ret;
+#endif
}
void