summaryrefslogtreecommitdiff
path: root/src/thread.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-12-09 18:23:04 +0200
committerEli Zaretskii <eliz@gnu.org>2016-12-09 18:23:04 +0200
commit7399f53a3706c8cb6ce27f7fe51fb5dc79e39bc1 (patch)
tree88e4212341ca08f9da3d8c1ea71cf033c11b1324 /src/thread.h
parentae490069eafa68356405fc9719910a4c533f14ea (diff)
downloademacs-7399f53a3706c8cb6ce27f7fe51fb5dc79e39bc1.tar.gz
emacs-7399f53a3706c8cb6ce27f7fe51fb5dc79e39bc1.tar.bz2
emacs-7399f53a3706c8cb6ce27f7fe51fb5dc79e39bc1.zip
Fix compilation warnings due to prototype of thread_select
* src/thread.h <int select_func>: Make the 5th and 6th arguments be 'const'. * src/process.c [WINDOWSNT]: * src/w32proc.c: Make the 5th and 6th argument to sys_select be 'const'.
Diffstat (limited to 'src/thread.h')
-rw-r--r--src/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread.h b/src/thread.h
index 64448007531..a9de754d6b4 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -226,7 +226,7 @@ extern void init_threads (void);
extern void syms_of_threads (void);
typedef int select_func (int, fd_set *, fd_set *, fd_set *,
- struct timespec *, sigset_t *);
+ const struct timespec *, const sigset_t *);
int thread_select (select_func *func, int max_fds, fd_set *rfds,
fd_set *wfds, fd_set *efds, struct timespec *timeout,