hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 66dab152148fa5536ba8b21af644c065f9dd7d94
parent b76316ece5f8288918bac43bc7a819133957c8e9
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 18 Nov 2021 12:11:33 +0100

net: listenerfd is portable

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mnet/+linux.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/+linux.ha b/net/+linux.ha @@ -12,7 +12,7 @@ export type stream_listener = struct { fd: int, }; -// Gets the fd of the listener's socket. This function is not portable. +// Gets the file of a listener's socket. export fn listenerfd(l: *listener) (io::file | void) = { if (l.accept == &stream_accept) { return (l: *stream_listener).fd;