Skip to content

#include <sys/select.h> to waylandplasmascreengrabber.cpp

Hennadii Chernyshchyk requested to merge github/fork/trailblazing/develop into master

Created by: trailblazing

When building on void/x86_64/linux-musl/wayland, I got this: /working/dictionary_and_thesaurus/crow-translate/src/ocr/screengrabbers/waylandplasmascreengrabber.cpp:92:5: error: unknown type name 'fd_set' fd_set readset; /working/dictionary_and_thesaurus/crow-translate/src/ocr/screengrabbers/waylandplasmascreengrabber.cpp:95:5: error: unknown type name 'timeval' timeval timeout{30, 0}; /working/dictionary_and_thesaurus/crow-translate/src/ocr/screengrabbers/waylandplasmascreengrabber.cpp:102:34: error: use of undeclared identifier 'FD_SETSIZE' const int ready = select(FD_SETSIZE, &readset, nullptr, nullptr, &timeout); In waylandplasmascreengrabber.cpp, I added #include <sys/select.h> Build succeeded.

Merge request reports