root/src/noit_config.h.in

Revision 7e43d37ee8476335cb9af1abff0f709c97488df8, 4.6 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

stubs for modules

  • 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 MODULEEXT
40
41 #undef HAVE_FCNTL_H
42 #undef HAVE_SYS_TYPES_H
43 #undef HAVE_DIRENT_H
44 #undef HAVE_ERRNO_H
45 #undef HAVE_STRING_H
46 #undef HAVE_STDLIB_H
47 #undef HAVE_SYS_PARAM_H
48 #undef HAVE_TIME_H
49 #undef HAVE_SYS_STAT_H
50 #undef HAVE_SYS_RESOURCE_H
51 #undef HAVE_LIBKERN_OSATOMIC_H
52 #undef HAVE_INT64_T
53 #undef HAVE_INTXX_T
54 #undef HAVE_LONG_LONG_INT
55 #undef HAVE_UINTXX_T
56 #undef HAVE_U_INT
57 #undef HAVE_U_INT64_T
58 #undef HAVE_U_INTXX_T
59 #define IFS_CH '/'
60
61 #ifdef HAVE_STRING_H
62 #include <string.h>
63 #endif
64 #ifdef HAVE_STDLIB_H
65 #include <stdlib.h>
66 #endif
67 #ifdef HAVE_SYS_PARAM_H
68 #include <sys/param.h>
69 #endif
70 #ifdef HAVE_SYS_TYPES_H
71 #include <sys/types.h>
72 #endif
73 #ifdef HAVE_SYS_STAT_H
74 #include <sys/stat.h>
75 #endif
76 #ifdef HAVE_SYS_RESOURCE_H
77 #include <sys/resource.h>
78 #endif
79
80 /* Kernel kqueue() support */
81 #undef HAVE_KQUEUE
82
83 /* The number of bytes in a char.  */
84 #undef SIZEOF_CHAR
85
86 /* The number of bytes in a int.  */
87 #undef SIZEOF_INT
88
89 /* The number of bytes in a size_t.  */
90 #undef SIZEOF_SIZE_T
91
92
93 /* The number of bytes in a long int.  */
94 #undef SIZEOF_LONG_INT
95
96 /* The number of bytes in a long long int.  */
97 #undef SIZEOF_LONG_LONG_INT
98
99 /* The number of bytes in a short int.  */
100 #undef SIZEOF_SHORT_INT
101
102 /* The number of bytes in a void *.  */
103 #undef SIZEOF_VOID_P
104
105 #ifndef HAVE_U_INT
106 typedef unsigned int u_int;
107 #endif
108
109 #undef HAVE_INTXX_T
110 #ifndef HAVE_INTXX_T
111 #if (SIZEOF_CHAR == 1)
112 typedef char int8_t;
113 #else
114 #error "8 bit int type not found."
115 #endif
116 #if (SIZEOF_SHORT_INT == 2)
117 typedef short int int16_t;
118 #else
119 #ifdef _CRAY
120 typedef long int16_t;
121 #else
122 #warning "16 bit int type not found."
123 #endif /* _CRAY */
124 #endif
125 #if (SIZEOF_INT == 4)
126 typedef int int32_t;
127 #else
128 #ifdef _CRAY
129 typedef long int32_t;
130 #else
131 #error "32 bit int type not found."
132 #endif /* _CRAY */
133 #endif
134 #endif
135
136 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
137 #ifndef HAVE_U_INTXX_T
138 #ifdef HAVE_UINTXX_T
139 typedef uint8_t u_int8_t;
140 typedef uint16_t u_int16_t;
141 typedef uint32_t u_int32_t;
142 #define HAVE_U_INTXX_T 1
143 #else
144 #if (SIZEOF_CHAR == 1)
145 typedef unsigned char u_int8_t;
146 #else
147 #error "8 bit int type not found."
148 #endif
149 #if (SIZEOF_SHORT_INT == 2)
150 typedef unsigned short int u_int16_t;
151 #else
152 #ifdef _CRAY
153 typedef unsigned long u_int16_t;
154 #else
155 #warning "16 bit int type not found."
156 #endif
157 #endif
158 #if (SIZEOF_INT == 4)
159 typedef unsigned int u_int32_t;
160 #else
161 #ifdef _CRAY
162 typedef unsigned long u_int32_t;
163 #else
164 #error "32 bit int type not found."
165 #endif
166 #endif
167 #endif
168 #endif
169
170 /* 64-bit types */
171 #ifndef HAVE_INT64_T
172 #if (SIZEOF_LONG_INT == 8)
173 typedef long int int64_t;
174 #define HAVE_INT64_T 1
175 #else
176 #if (SIZEOF_LONG_LONG_INT == 8)
177 typedef long long int int64_t;
178 #define HAVE_INT64_T 1
179 #define HAVE_LONG_LONG_INT
180 #endif
181 #endif
182 #endif
183 #ifndef HAVE_U_INT64_T
184 #if (SIZEOF_LONG_INT == 8)
185 typedef unsigned long int u_int64_t;
186 #define HAVE_U_INT64_T 1
187 #else
188 #if (SIZEOF_LONG_LONG_INT == 8)
189 typedef unsigned long long int u_int64_t;
190 #define HAVE_U_INT64_T 1
191 #endif
192 #endif
193 #endif
194
195 #endif
Note: See TracBrowser for help on using the browser.