root/src/noit_config.h.in

Revision 5b8a066e6456fa22d6ef41c1b4078189e356b3ee, 5.5 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

cleanup warnings and fix tputs in libedit, refs #34

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