diff options
Diffstat (limited to 'Applications/Calculator/main.cpp')
-rw-r--r-- | Applications/Calculator/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Applications/Calculator/main.cpp b/Applications/Calculator/main.cpp index f38251eb42..e89302bf59 100644 --- a/Applications/Calculator/main.cpp +++ b/Applications/Calculator/main.cpp @@ -5,11 +5,22 @@ #include <LibGUI/GApplication.h> #include <LibGUI/GMenuBar.h> #include <LibGUI/GWindow.h> +#include <stdio.h> int main(int argc, char** argv) { + if (pledge("stdio shared_buffer unix rpath cpath fattr", nullptr) < 0) { + perror("pledge"); + return 1; + } + GApplication app(argc, argv); + if (pledge("stdio shared_buffer rpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + auto window = GWindow::construct(); window->set_title("Calculator"); window->set_resizable(false); |