aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>2000-08-25 10:53:26 +0800
committertaoka <taoka@FreeBSD.org>2000-08-25 10:53:26 +0800
commit4d93412c880dd0442efa399145396c1d9d66736d (patch)
tree4fb793e808cc9309285b19534954074948b1a504 /japanese
parenta45cfc51e1a1a992e19b15cf1fea32f77d74f2b0 (diff)
downloadfreebsd-ports-gnome-4d93412c880dd0442efa399145396c1d9d66736d.tar.gz
freebsd-ports-gnome-4d93412c880dd0442efa399145396c1d9d66736d.tar.zst
freebsd-ports-gnome-4d93412c880dd0442efa399145396c1d9d66736d.zip
Oops. I forgot to add a new patch to succeed in compiling on FreeBSD
Diffstat (limited to 'japanese')
-rw-r--r--japanese/easypr/files/patch-aa25
1 files changed, 25 insertions, 0 deletions
diff --git a/japanese/easypr/files/patch-aa b/japanese/easypr/files/patch-aa
new file mode 100644
index 000000000000..9d8f3c0d15aa
--- /dev/null
+++ b/japanese/easypr/files/patch-aa
@@ -0,0 +1,25 @@
+--- setcap.c.orig Mon Jul 24 23:22:11 2000
++++ setcap.c Fri Aug 25 11:17:42 2000
+@@ -1,6 +1,10 @@
+ #include <stdio.h>
+ #include <signal.h>
+
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
+ int main(int argc, char **argv) {
+ FILE *fp;
+ int i, pid;
+@@ -9,7 +13,11 @@
+ switch(argc) {
+ case 1:
+ for(i = 0;i < 3;i++) {
++#if (defined(BSD) && (BSD >= 199103))
++ sprintf(com, "/dev/lpt%d", i);
++#else
+ sprintf(com, "/dev/lp%d", i);
++#endif
+ if((fp = fopen(com, "w")) != 0) {
+ puts(com);
+ fclose(fp);