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.2 2003/06/06 10:11:15 jmmv 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, "@PREFIX@/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, "@PREFIX@/bin/rearj");
#else
dest[0]='\0';
#endif
|