mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Fix build with musl
This commit is contained in:
@@ -300,8 +300,8 @@ namespace gsr {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct stat64 stat;
|
struct stat stat;
|
||||||
if(fstat64(file_fd, &stat) == -1) {
|
if(fstat(file_fd, &stat) == -1) {
|
||||||
fprintf(stderr, "gsr ui: error: ClipboardFile::set_current_file: failed to get file size for file %s, error: %s\n", filepath.c_str(), strerror(errno));
|
fprintf(stderr, "gsr ui: error: ClipboardFile::set_current_file: failed to get file size for file %s, error: %s\n", filepath.c_str(), strerror(errno));
|
||||||
close(file_fd);
|
close(file_fd);
|
||||||
file_fd = -1;
|
file_fd = -1;
|
||||||
@@ -313,4 +313,4 @@ namespace gsr {
|
|||||||
XSetSelectionOwner(dpy, clipboard_atom, clipboard_window, CurrentTime);
|
XSetSelectionOwner(dpy, clipboard_atom, clipboard_window, CurrentTime);
|
||||||
XFlush(dpy);
|
XFlush(dpy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <mgl/mgl.h>
|
#include <mgl/mgl.h>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
#include <mglpp/window/Event.hpp>
|
#include <mglpp/window/Event.hpp>
|
||||||
#include <mglpp/system/FloatRect.hpp>
|
#include <mglpp/system/FloatRect.hpp>
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -296,4 +297,4 @@ namespace gsr {
|
|||||||
const std::string& FileChooser::get_current_directory() const {
|
const std::string& FileChooser::get_current_directory() const {
|
||||||
return current_directory_text.get_string();
|
return current_directory_text.get_string();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <mglpp/mglpp.hpp>
|
#include <mglpp/mglpp.hpp>
|
||||||
#include <mglpp/system/Clock.hpp>
|
#include <mglpp/system/Clock.hpp>
|
||||||
|
|||||||
Reference in New Issue
Block a user