SINFONI Pipeline Reference Manual  2.5.2
sinfo_vltPort.h
1 /*
2  * This file is part of the ESO SINFONI Pipeline
3  * Copyright (C) 2004,2005 European Southern Observatory
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18  */
19 /*************************************************************************
20 * E.S.O. - VLT project
21 *
22 * "@(#) $Id: sinfo_vltPort.h,v 1.3 2006-10-25 06:46:09 amodigli Exp $"
23 *
24 * vltPort.h for Sun Solaris 2
25 *
26 * who when what
27 * -------- -------- ----------------------------------------------
28 * gfilippi 22/05/96 created form vltPort.h
29 * gfilippi 23/05/96 define SUN_COMP added
30 *
31 */
32 
33 /************************************************************************
34 * vltPort.h - Include file to mask differences between platforms.
35 * This file should be included in all source files.
36 * It relies on macro definitions preceeding the
37 * inclusion of this file.
38 *
39 * REMARK: This file belongs to the "vltMake" module.
40 *------------------------------------------------------------------------
41 */
42 
43 #ifndef SINFO_VLTPORT_H
44 #define SINFO_VLTPORT_H
45 
46 /*
47 * When it is used, vltPort.h MUST be the very first file included
48 * in ANSI ".c" files.
49 * Cause a syntax error if we detect that any other include file has been
50 * included before vltPort.h in an ANSI ".c" file.
51 */
52 #if defined(__STDC__) && \
53  (defined(_H_STANDARDS) || \
54  defined(_SYS_STDSYMS_INCLUDED) || \
55  defined(_STANDARDS_H_))
56 # error "vltPort.h MUST BE THE VERY FIRST FILE INCLUDED IN ANSI '.c' FILES"
57 #endif
58 
59 /*
60  * This file is used also by some VxWorks code.
61  * To be compatible with existing code, SUN_COMP is defined for both
62  * gcc and cc68k, but the following definitiond do not influence cc68k
63  */
64 
65 #define SUN_COMP
66 
67 /*
68  * at present, SELECT is defined in the code using it. It should be done here
69  * for all. May be in the next release.
70  */
71 
72 /*
73  * Adjust name-space information.
74  */
75 #if defined(_ALL_SOURCE)
76 # undef _POSIX_C_SOURCE
77 #endif
78 
79 #if defined(_XOPEN_SOURCE)
80 # undef _POSIX_C_SOURCE
81 #endif
82 
83 #ifndef MAKE_VXWORKS
84 #include <stddef.h>
85 #include <sys/types.h>
86 #include <sys/time.h>
87 
88 #if !defined(timercmp)
89 /*
90 AMO: 03/09/03 commented out for Linux
91  struct timeval
92  {
93  long tv_sec;
94  long tv_usec;
95  };
96 */
97 #define crTIMEVAL_TIMEZONE_DEFINED
98 #endif
99 #endif /* MAKE_VXWORKS */
100 
101 #endif