/* @(#)root/thread:$Name: $:$Id: PosixThreadInc.h,v 1.2 2000/07/12 16:37:21 brun 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) #define PthreadDraftVersion 10 #elif defined(R__HPUX) #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