/* chronyd/chronyc - Programs for keeping computer clocks accurate. ********************************************************************** * Copyright (C) Richard P. Curnow 1997-2003 * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ********************************************************************** ======================================================================= This file includes all system header files that the software requires. This allows us to isolate system dependencies to this file alone. */ #ifndef GOT_SYSINCL_H #define GOT_SYSINCL_H #if defined (SOLARIS) || defined(SUNOS) || defined(LINUX) || defined(__NetBSD__) #if !defined(__NetBSD__) && !defined(__FreeBSD__) #include #endif #include #include #include #include #include #if !defined(__FreeBSD__) #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if HAS_STDINT_H #include #elif defined(HAS_INTTYPES_H) #include #else /* Tough */ #endif /* One or other of these to make getsid() visible */ #define __EXTENSIONS__ 1 #define __USE_XOPEN_EXTENDED 1 #include #endif #ifdef HAVE_IPV6 /* For inet_ntop() */ #include #endif #if defined (SOLARIS) || defined(SUNOS) /* Only needed on these platforms, and doesn't exist on some Linux versions. */ #include #endif #if defined (HAS_NO_BZERO) #define bzero(ptr,n) memset(ptr,0,n) #endif /* HAS_NO_BZERO */ #if defined (WINNT) /* Designed to work with the GCC from the GNAT-3.10 for Win32 distribution */ #define Win32_Winsock #include #include #if 1 /* Cheat and inline the necessary bits from . We don't include it directly because it redefines some EXXX constants that conflict with (included by ) */ int* _errno(); int* __doserrno(); #define errno (*_errno()) #define _doserrno (*__doserrno()) #define ENOENT 2 #else #include #endif #include #include #include #include #include #include #include #include #include #include #endif #endif /* GOT_SYSINCL_H */