Index: coda-6.1.2/coda-src/venus/fso1.cc =================================================================== --- coda-6.1.2.orig/coda-src/venus/fso1.cc +++ coda-6.1.2/coda-src/venus/fso1.cc @@ -2925,7 +2925,7 @@ int fsobj::LaunchASR(int conflict_type, char confstr[4]; close(pfd[1]); - if(setpgrp() < 0) { perror("setpgrp"); exit(EXIT_FAILURE); } + if(setpgid(0, 0) < 0) { perror("setpgrp"); exit(EXIT_FAILURE); } sprintf(confstr, "%d", conflict_type); Index: coda-6.1.2/coda-src/kerndep/pioctl.h =================================================================== --- coda-6.1.2.orig/coda-src/kerndep/pioctl.h +++ coda-6.1.2/coda-src/kerndep/pioctl.h @@ -42,9 +42,10 @@ in coda.h */ int pioctl(const char *path, unsigned long com, struct ViceIoctl *vidata, int follow); -#if defined(__APPLE__) && defined(__MACH__) +#if ( defined(__APPLE__) && defined(__MACH__) ) || defined(__FreeBSD__) /* * These are absent from Darwin's . + * And from FreeBSD too. */ #define _IOC_NRBITS 8 #define _IOC_TYPEBITS 8