mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-30 08:36:44 +02:00
Replace deprecated usleep function with nanosleep
usleep was declared obsolete in POSIX.1-2001
This commit is contained in:
@ -101,6 +101,9 @@ int mbs_to_wcs_buf(wchar_t *buf, const char *string, size_t n);
|
||||
/* Returns 1 if connection has timed out, 0 otherwise */
|
||||
int timed_out(time_t timestamp, time_t timeout);
|
||||
|
||||
/* Sleeps the caller's thread for `usec` microseconds */
|
||||
void sleep_thread(long int usec);
|
||||
|
||||
/* Colours the window tab according to type. Beeps if is_beep is true */
|
||||
void alert_window(ToxWindow *self, int type, bool is_beep);
|
||||
|
||||
|
Reference in New Issue
Block a user