$NetBSD: patch-aa,v 1.7 2005/09/08 22:37:53 abs Exp $ --- environ.c.orig Fri Jun 18 11:19:36 2004 +++ environ.c @@ -58,10 +58,10 @@ #include #include #include - #elif defined(__FreeBSD__)||defined(__NetBSD__) + #elif defined(__FreeBSD__)||defined(__NetBSD__)||defined(__APPLE__) #include #include - #elif defined(__QNXNTO__) + #elif defined(__QNXNTO__)||defined(__INTERIX) #include #else #include @@ -2286,7 +2286,7 @@ unsigned long file_getfree(char *name) else return((LONG_MAX/(spclu*bps)= 299000900)) struct statvfs vfs; if(statvfs(name, &vfs)==-1) @@ -3005,7 +3005,7 @@ void get_exe_name(char *dest, char *arg) they are missing altogether, the corresponding code will gracefully terminate. */ #if SFX_LEVEL==ARJ - strcpy(dest, "/usr/local/bin/arj"); + strcpy(dest, "@PREFIX@/bin/arj"); #elif SFX_LEVEL==ARJSFXV strcpy(dest, "./arjsfxv"); #elif SFX_LEVEL==ARJSFX @@ -3013,7 +3013,7 @@ void get_exe_name(char *dest, char *arg) #elif SFX_LEVEL==ARJSFXJR strcpy(dest, "./arjsfxjr"); #elif defined(REARJ) - strcpy(dest, "/usr/local/bin/rearj"); + strcpy(dest, "@PREFIX@/bin/rearj"); #else dest[0]='\0'; #endif @@ -3802,7 +3802,9 @@ int reset_drive(char *name) #elif TARGET==WIN32 return(0); #elif TARGET==UNIX + #ifndef __INTERIX sync(); + #endif return(0); #endif }