diff options
author | Satoshi Taoka <taoka@FreeBSD.org> | 2000-08-25 02:53:26 +0000 |
---|---|---|
committer | Satoshi Taoka <taoka@FreeBSD.org> | 2000-08-25 02:53:26 +0000 |
commit | 2d2a84a5591ad004594d2a7d04fe1854759f1726 (patch) | |
tree | 03a0dfd2bf7c410959aef9151e3929d7327c3ce4 /japanese/easypr | |
parent | 898bfd4af74c74336fd8f28e8dde1f3a8af30f51 (diff) | |
download | ports-2d2a84a5591ad004594d2a7d04fe1854759f1726.tar.gz ports-2d2a84a5591ad004594d2a7d04fe1854759f1726.zip |
Notes
Diffstat (limited to 'japanese/easypr')
-rw-r--r-- | japanese/easypr/files/patch-aa | 25 |
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); |