From 7a0851c446dc6d128b1c49e21cc9d356bd7debc3 Mon Sep 17 00:00:00 2001
From: Kaz Kylheku <kaz@kylheku.com>
Date: Tue, 28 Apr 2015 20:19:09 -0700
Subject: Adding poll function.

* configure: Check for the poll function and set
HAVE_POLL accordingly in config.h.

* stream.h (fd_k): External declaration added.

* sysif.c (poll_wrap): New function.
(sysif_init): Registered poll-in, poll-out, poll-err,
poll-pri, poll-rdhup, poll-nval, poll-rdband, poll-wrband
variables and poll function.

* txr.1: Documented poll.
---
 stream.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'stream.h')

diff --git a/stream.h b/stream.h
index 48432e9f..910cdaec 100644
--- a/stream.h
+++ b/stream.h
@@ -72,7 +72,7 @@ extern val dev_k, ino_k, mode_k, nlink_k, uid_k;
 extern val gid_k, rdev_k, size_k, blksize_k, blocks_k;
 extern val atime_k, mtime_k, ctime_k;
 extern val from_start_k, from_current_k, from_end_k;
-extern val real_time_k, name_k;
+extern val real_time_k, name_k, fd_k;
 extern val format_s;
 
 extern val stdin_s, stdout_s, stddebug_s, stderr_s, stdnull_s;
-- 
cgit v1.2.3