$NetBSD: patch-af,v 1.3 2003/04/21 20:28:45 cjep Exp $ --- dptutil/engcalls.c.orig Tue Aug 13 16:02:24 2002 +++ dptutil/engcalls.c Fri Dec 13 14:19:12 2002 @@ -118,6 +118,12 @@ char *CommEnginePathNameDefault = "/opt/SUNWhwrdg/dptcom"; char *DefaultPathName = "/opt/SUNWhwrdg/"; +#elif defined (__NetBSD__) + +char *EnginePathNameDefault = _NBSD_LIBEXEC "/dpteng &"; +char *CommEnginePathNameDefault = _NBSD_LIBEXEC "/dptcom &"; +char *DefaultPathName = _NBSD_LIBEXEC; + #else char *EnginePathNameDefault = "/usr/dpt/dpteng &"; @@ -954,7 +960,7 @@ /* Get The Shared Memory Segment */ BufferID = shmget(IPC_PRIVATE,(int)(toEngTotalSize + fromEngTotalSize), - SHM_ALLRD | SHM_ALLWR | IPC_CREAT); + SHM_URD | SHM_UWR | IPC_CREAT); /* If We Got The Segment, Try To Attach To It */