/* @(#)root/thread:$Name: $:$Id: PosixThreadInc.h,v 1.5 2001/04/03 10:40:24 rdm Exp $ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_PosixThreadInc #define ROOT_PosixThreadInc ////////////////////////////////////////////////////////////////////////// // // // PosixThreadInc // // // // Common includes for the Posix thread implementation. // // // ////////////////////////////////////////////////////////////////////////// #ifndef __CINT__ #ifndef ROOT_TError #include "TError.h" #endif #ifndef ROOT_TSystem #include "TSystem.h" #endif #include #include #if defined(R__LINUX) || defined(R__SOLARIS) || defined(R__ALPHA) #define PthreadDraftVersion 10 #elif defined(R__HPUX) || defined(R__AIX) #define PthreadDraftVersion 4 #else #if !defined(R__KCC) #warning PthreadDraftVersion not specified #endif #endif #if (PthreadDraftVersion <= 6) #define ERRNO(x) (((x) != 0) ? (TSystem::GetErrno()) : 0) #else #define ERRNO(x) (x) #endif #endif /* __CINT__ */ #endif