shithub: vim

Download patch

ref: 74343d66b2ba1043577dbb6a02f97d5e06b3a7c5
parent: 6949cc1d5185d10de1c78e5a10526b2949f3e35a
author: phil9 <telephil9@gmail.com>
date: Thu Sep 2 15:24:48 EDT 2021

Add missing _SLEEP declaration.

	We use plan9 sleep (through its syscall name _SLEEP) in the plumber thread
	to have a millisecond precision instead of the POSIX sleep and its second precision.

--- a/os_plan9.c
+++ b/os_plan9.c
@@ -29,6 +29,7 @@
 /* We need to access the native Plan 9 alarm() since
  * it takes milliseconds rather than seconds. */
 extern int _ALARM(unsigned long);
+extern int _SLEEP(long);
 
 enum {
     /* Text modes are in sync with term.c */