Skip to content

Commit

Permalink
fsearch: Include <unistd.h> for the usleep function
Browse files Browse the repository at this point in the history
This improves compatibility with compilers which do not support
implicit function declarations.

Upstream fsearch does not call usleep and is therefore not affected
by this issue.
  • Loading branch information
fweimer-rh authored and Johnson-zs committed Jan 18, 2024
1 parent c2578bf commit 399d5f9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

#include "fsearch_thread_pool.h"
#include <sys/time.h>
#include <unistd.h>

struct _FsearchThreadPool {
GList *threads;
uint32_t num_threads;
Expand Down

0 comments on commit 399d5f9

Please sign in to comment.