SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
24
devel/rgbds/patches/patch-src_gfx_main_cpp
Normal file
24
devel/rgbds/patches/patch-src_gfx_main_cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
Index: src/gfx/main.cpp
|
||||
--- src/gfx/main.cpp.orig
|
||||
+++ src/gfx/main.cpp
|
||||
@@ -138,6 +138,8 @@ static struct option const longopts[] = {
|
||||
{NULL, no_argument, NULL, 0 }
|
||||
};
|
||||
|
||||
+int pledge(const char *, const char *);
|
||||
+
|
||||
static void printUsage(void) {
|
||||
fputs("Usage: rgbgfx [-r stride] [-CmuVZ] [-v [-v ...]] [-a <attr_map> | -A]\n"
|
||||
" [-b <base_ids>] [-c <colors>] [-d <depth>] [-L <slice>] [-N <nb_tiles>]\n"
|
||||
@@ -581,6 +583,11 @@ static char *parseArgv(int argc, char **argv, bool &au
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
bool autoAttrmap = false, autoTilemap = false, autoPalettes = false, autoPalmap = false;
|
||||
+
|
||||
+ if (pledge("stdio rpath wpath cpath", NULL) == -1) {
|
||||
+ fputs("pledge", stderr);
|
||||
+ exit(1);
|
||||
+ }
|
||||
|
||||
struct AtFileStackEntry {
|
||||
int parentInd; // Saved offset into parent argv
|
Loading…
Add table
Add a link
Reference in a new issue