00001 /*************************************************************************
00002 * E.S.O. - VLT project
00003 *
00004 * "@(#) $Id: vltPort.h,v 1.2 2003/11/11 08:32:43 amodigli Exp $"
00005 *
00006 * vltPort.h for Sun Solaris 2
00007 *
00008 * who when what
00009 * -------- -------- ----------------------------------------------
00010 * gfilippi 22/05/96 created form vltPort.h
00011 * gfilippi 23/05/96 define SUN_COMP added
00012 *
00013 */
00014
00015 /************************************************************************
00016 * vltPort.h - Include file to mask differences between platforms.
00017 * This file should be included in all source files.
00018 * It relies on macro definitions preceeding the
00019 * inclusion of this file.
00020 *
00021 * REMARK: This file belongs to the "vltMake" module.
00022 *------------------------------------------------------------------------
00023 */
00024
00025 #ifndef VLTPORT_H
00026 #define VLTPORT_H
00027
00028 /*
00029 * When it is used, vltPort.h MUST be the very first file included
00030 * in ANSI ".c" files.
00031 * Cause a syntax error if we detect that any other include file has been
00032 * included before vltPort.h in an ANSI ".c" file.
00033 */
00034 #if defined(__STDC__) && \
00035 (defined(_H_STANDARDS) || \
00036 defined(_SYS_STDSYMS_INCLUDED) || \
00037 defined(_STANDARDS_H_))
00038 # error "vltPort.h MUST BE THE VERY FIRST FILE INCLUDED IN ANSI '.c' FILES"
00039 #endif
00040
00041 /*
00042 * This file is used also by some VxWorks code.
00043 * To be compatible with existing code, SUN_COMP is defined for both
00044 * gcc and cc68k, but the following definitiond do not influence cc68k
00045 */
00046
00047 #define SUN_COMP
00048
00049 /*
00050 * at present, SELECT is defined in the code using it. It should be done here
00051 * for all. May be in the next release.
00052 */
00053
00054 /*
00055 * Adjust name-space information.
00056 */
00057 #if defined(_ALL_SOURCE)
00058 # undef _POSIX_C_SOURCE
00059 #endif
00060
00061 #if defined(_XOPEN_SOURCE)
00062 # undef _POSIX_C_SOURCE
00063 #endif
00064
00065 #ifndef MAKE_VXWORKS
00066 #include <stddef.h>
00067 #include <sys/types.h>
00068 #include <sys/time.h>
00069
00070 #if !defined(timercmp)
00071 /*
00072 AMO: 03/09/03 commented out for Linux
00073 struct timeval
00074 {
00075 long tv_sec;
00076 long tv_usec;
00077 };
00078 */
00079 #define crTIMEVAL_TIMEZONE_DEFINED
00080 #endif
00081 #endif /* MAKE_VXWORKS */
00082
00083 #endif
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001