fixed Forbid fallback
[aros:aros.git] / ports / devel / cflow / cflow-1.4-aros.diff
1 diff -Naur cflow-1.4-orig/src/rc.c cflow-1.4/src/rc.c
2 --- cflow-1.4-orig/src/rc.c     2012-04-12 22:11:58.618154066 +0200
3 +++ cflow-1.4/src/rc.c  2012-04-12 22:14:40.838613413 +0200
4 @@ -108,7 +108,11 @@
5       if (env) 
6           parse_rc(&xargc, &xargv, env);
7       else {
8 -         char *home = getenv("HOME");
9 +#if defined(__AROS__)
10 +         char *home = "PROGDIR:";
11 +#else
12 +         char *home = getenv("HOME");
13 +#endif
14           if (home) {
15                int len = strlen(home);
16                char *buf = malloc(len + sizeof(LOCAL_RC)
17 @@ -116,8 +120,10 @@
18                if (!buf)
19                     return;
20                strcpy(buf, home);
21 +#if !defined(__AROS__)
22                if (home[len-1] != '/')
23                     buf[len++] = '/';
24 +#endif
25                strcpy(buf+len, LOCAL_RC);
26                parse_rc(&xargc, &xargv, buf);
27                free(buf);