SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
18
textproc/apertium/patches/patch-apertium_wblank-detach_cc
Normal file
18
textproc/apertium/patches/patch-apertium_wblank-detach_cc
Normal file
|
@ -0,0 +1,18 @@
|
|||
Index: apertium/wblank-detach.cc
|
||||
--- apertium/wblank-detach.cc.orig
|
||||
+++ apertium/wblank-detach.cc
|
||||
@@ -19,8 +19,14 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <array>
|
||||
+#include <unistd.h>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
+ if (pledge("stdio rpath wpath cpath", NULL) == -1) {
|
||||
+ std::cerr << "pledge" << std::endl;
|
||||
+ return 1;
|
||||
+ }
|
||||
+
|
||||
// Ignore -z, but anything else just show what this tool does
|
||||
if (argc > 1 && argv[1][1] != 'z') {
|
||||
std::cout << "Closes all word-bound blanks, turning [[...]]^...$ into [[...]]^...$[[/]]\n";
|
Loading…
Add table
Add a link
Reference in a new issue