chore: fix builds on non-linux systems

This commit is contained in:
maelstrom 2025-06-07 01:04:01 +02:00
parent 0c4ef35ac7
commit c7b9e873ee
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
#include "panic.h" #include "panic.h"
// GNU/Linux implementation // GNU/Linux implementation
#if defined(_POSIX_VERSION) || defined(__linux) || defined(__linux__) #if defined(_POSIX_VERSION) || defined(__linux) || defined(__linux__) || defined(__unix__)
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>

View file

@ -125,7 +125,7 @@ ScriptDocument::ScriptDocument(std::shared_ptr<Script> script, QWidget* parent):
QFrame* frame = new QFrame; QFrame* frame = new QFrame;
QVBoxLayout* frameLayout = new QVBoxLayout; QVBoxLayout* frameLayout = new QVBoxLayout;
frameLayout->setMargin(0); frameLayout->setContentsMargins({0, 0, 0, 0});
frame->setLayout(frameLayout); frame->setLayout(frameLayout);
scintilla = new QsciScintilla(this); scintilla = new QsciScintilla(this);