SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
23
textproc/apertium-lex-tools/patches/patch-src_lrx_comp_cc
Normal file
23
textproc/apertium-lex-tools/patches/patch-src_lrx_comp_cc
Normal file
|
@ -0,0 +1,23 @@
|
|||
Index: src/lrx_comp.cc
|
||||
--- src/lrx_comp.cc.orig
|
||||
+++ src/lrx_comp.cc
|
||||
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
#include <lrx_compiler.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -31,6 +32,11 @@ void endProgram(char *name)
|
||||
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
+ if (pledge("stdio rpath wpath cpath", NULL) == -1) {
|
||||
+ cerr << "pledge" << endl;
|
||||
+ exit(EXIT_FAILURE);
|
||||
+ }
|
||||
+
|
||||
LRXCompiler compiler;
|
||||
|
||||
if(argc != 3 && argc != 4)
|
Loading…
Add table
Add a link
Reference in a new issue