root/src/noit_config.h.in

Revision 01751d3c6a2df6acc30c50e9cd1cce9064262450, 4.3 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

still nothing working, but substantially more plumbing

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2005-2007, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met:
8  *
9  *    * Redistributions of source code must retain the above copyright
10  *      notice, this list of conditions and the following disclaimer.
11  *    * Redistributions in binary form must reproduce the above
12  *      copyright notice, this list of conditions and the following
13  *      disclaimer in the documentation and/or other materials provided
14  *      with the distribution.
15  *    * Neither the name OmniTI Computer Consulting, Inc. nor the names
16  *      of its contributors may be used to endorse or promote products
17  *      derived from this software without specific prior written
18  *      permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32
33 #ifndef __NOIT_CONFIG_H
34 #define __NOIT_CONFIG_H
35
36 /* define inline unless that is what the compiler already calls it. */
37 #undef inline
38
39 #undef HAVE_FCNTL_H
40 #undef HAVE_SYS_TYPES_H
41 #undef HAVE_DIRENT_H
42 #undef HAVE_ERRNO_H
43 #undef HAVE_STRING_H
44 #undef HAVE_STDLIB_H
45 #undef HAVE_SYS_PARAM_H
46 #undef HAVE_TIME_H
47 #undef HAVE_SYS_STAT_H
48 #define IFS_CH '/'
49
50 #ifdef HAVE_STRING_H
51 #include <string.h>
52 #endif
53 #ifdef HAVE_STDLIB_H
54 #include <stdlib.h>
55 #endif
56 #ifdef HAVE_SYS_PARAM_H
57 #include <sys/param.h>
58 #endif
59 #ifdef HAVE_SYS_TYPES_H
60 #include <sys/types.h>
61 #endif
62 #ifdef HAVE_SYS_STAT_H
63 #include <sys/stat.h>
64 #endif
65
66 /* Kernel kqueue() support */
67 #undef HAVE_KQUEUE
68
69 /* The number of bytes in a char.  */
70 #undef SIZEOF_CHAR
71
72 /* The number of bytes in a int.  */
73 #undef SIZEOF_INT
74
75 /* The number of bytes in a size_t.  */
76 #undef SIZEOF_SIZE_T
77
78
79 /* The number of bytes in a long int.  */
80 #undef SIZEOF_LONG_INT
81
82 /* The number of bytes in a long long int.  */
83 #undef SIZEOF_LONG_LONG_INT
84
85 /* The number of bytes in a short int.  */
86 #undef SIZEOF_SHORT_INT
87
88 /* The number of bytes in a void *.  */
89 #undef SIZEOF_VOID_P
90
91 #ifndef HAVE_U_INT
92 typedef unsigned int u_int;
93 #endif
94
95 #undef HAVE_INTXX_T
96 #ifndef HAVE_INTXX_T
97 #if (SIZEOF_CHAR == 1)
98 typedef char int8_t;
99 #else
100 #error "8 bit int type not found."
101 #endif
102 #if (SIZEOF_SHORT_INT == 2)
103 typedef short int int16_t;
104 #else
105 #ifdef _CRAY
106 typedef long int16_t;
107 #else
108 #warning "16 bit int type not found."
109 #endif /* _CRAY */
110 #endif
111 #if (SIZEOF_INT == 4)
112 typedef int int32_t;
113 #else
114 #ifdef _CRAY
115 typedef long int32_t;
116 #else
117 #error "32 bit int type not found."
118 #endif /* _CRAY */
119 #endif
120 #endif
121
122 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
123 #ifndef HAVE_U_INTXX_T
124 #ifdef HAVE_UINTXX_T
125 typedef uint8_t u_int8_t;
126 typedef uint16_t u_int16_t;
127 typedef uint32_t u_int32_t;
128 #define HAVE_U_INTXX_T 1
129 #else
130 #if (SIZEOF_CHAR == 1)
131 typedef unsigned char u_int8_t;
132 #else
133 #error "8 bit int type not found."
134 #endif
135 #if (SIZEOF_SHORT_INT == 2)
136 typedef unsigned short int u_int16_t;
137 #else
138 #ifdef _CRAY
139 typedef unsigned long u_int16_t;
140 #else
141 #warning "16 bit int type not found."
142 #endif
143 #endif
144 #if (SIZEOF_INT == 4)
145 typedef unsigned int u_int32_t;
146 #else
147 #ifdef _CRAY
148 typedef unsigned long u_int32_t;
149 #else
150 #error "32 bit int type not found."
151 #endif
152 #endif
153 #endif
154 #endif
155
156 /* 64-bit types */
157 #ifndef HAVE_INT64_T
158 #if (SIZEOF_LONG_INT == 8)
159 typedef long int int64_t;
160 #define HAVE_INT64_T 1
161 #else
162 #if (SIZEOF_LONG_LONG_INT == 8)
163 typedef long long int int64_t;
164 #define HAVE_INT64_T 1
165 #define HAVE_LONG_LONG_INT
166 #endif
167 #endif
168 #endif
169 #ifndef HAVE_U_INT64_T
170 #if (SIZEOF_LONG_INT == 8)
171 typedef unsigned long int u_int64_t;
172 #define HAVE_U_INT64_T 1
173 #else
174 #if (SIZEOF_LONG_LONG_INT == 8)
175 typedef unsigned long long int u_int64_t;
176 #define HAVE_U_INT64_T 1
177 #endif
178 #endif
179 #endif
180
181 #endif
Note: See TracBrowser for help on using the browser.