Skip to content

Commit

Permalink
osdep: rename polldev to poll_wrapper
Browse files Browse the repository at this point in the history
Originally, this was added as purely a shim for macOS. However since we
want to do high resolution polling which is not neccesarily available on
all platforms, making this a generic wrapper for poll functions is
useful so rename it.
  • Loading branch information
Dudemanguy committed Sep 18, 2023
1 parent 0beb105 commit 0c48fbe
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ if posix
subprocess_source = files('osdep/subprocess-posix.c')
sources += path_source + subprocess_source + \
files('input/ipc-unix.c',
'osdep/polldev.c',
'osdep/poll_wrapper.c',
'osdep/terminal-unix.c',
'sub/filter_regex.c')
endif
Expand Down
2 changes: 1 addition & 1 deletion osdep/polldev.c → osdep/poll_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <sys/select.h>
#include <stdio.h>

#include "osdep/polldev.h"
#include "poll_wrapper.h"

int polldev(struct pollfd fds[], nfds_t nfds, int timeout) {
#ifdef __APPLE__
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion osdep/terminal-unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "osdep/io.h"
#include "osdep/threads.h"
#include "osdep/polldev.h"
#include "osdep/poll_wrapper.h"

#include "common/common.h"
#include "misc/bstr.h"
Expand Down

0 comments on commit 0c48fbe

Please sign in to comment.