root/src/noit_config.h.in

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

import of libedit... prepare to hack

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