summaryrefslogtreecommitdiff
path: root/archivers/arj/patches/patch-aa
blob: b4b65f80a6d96ec87f071951400acdba82e984f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-aa,v 1.1.1.1 2002/12/13 15:39:28 cjep Exp $

--- environ.c.orig	Thu Mar 28 00:02:38 2002
+++ environ.c
@@ -53,7 +53,7 @@
  #if defined(linux)
   #include <sys/ioctl.h>
   #include <linux/fs.h>
- #elif defined(__FreeBSD__)
+ #elif defined(__FreeBSD__) || defined(__NetBSD__)
   #include <sys/param.h>
   #include <sys/mount.h>
  #else
@@ -2721,7 +2721,7 @@ void get_exe_name(char *dest, char *arg)
   ps=pe+1;
  } while(*pe!='\0');
  #if SFX_LEVEL==ARJ
-  strcpy(dest, "/usr/bin/arj");
+  strcpy(dest, "/usr/pkg/bin/arj");
  #elif SFX_LEVEL==ARJSFXV
   strcpy(dest, "./arjsfxv");
  #elif SFX_LEVEL==ARJSFX
@@ -2729,7 +2729,7 @@ void get_exe_name(char *dest, char *arg)
  #elif SFX_LEVEL==ARJSFXJR
   strcpy(dest, "./arjsfxjr");
  #elif defined(REARJ)
-  strcpy(dest, "/usr/bin/rearj");
+  strcpy(dest, "/usr/pkg/bin/rearj");
  #else
   dest[0]='\0';
  #endif