Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!itsgw!steinmetz!uunet!portal!cup.portal.com!gregh From: gregh@cup.portal.com (Greg S Hinton) Newsgroups: comp.unix.questions Subject: Determining system type Message-ID: <15406@cup.portal.com> Date: 5 Mar 89 06:17:03 GMT References: <327@wubios.wustl.edu> Organization: The Portal System (TM) Lines: 24 Is there a "standard" -- or optimal -- way to determine at compile time whether one is on a BSD or AT&T (Ver7, SysIII, SysV) system? This is the best I've been able to come up with so far: #include #if defined(S_ISOCK) /* BSD stuff */ #else /* AT&T stuff */ #endif Anyone have a better way? ----------- Greg Hinton gregh@cup.portal.com {hplabs!pyramid,amdahl!sun}!cup.portal.com!gregh