Click
Loading...
Searching...
No Matches
config-minios.h
1/* include/click/config-minios.h. Generated from config-minios.h.in by configure. */
2/* Process this file with configure to produce config-minios.h. -*- mode: c -*- */
3#ifndef CLICK_CONFIG_MINIOS_H
4#define CLICK_CONFIG_MINIOS_H
5
6/* Define if you have the <byteswap.h> header file. */
7#define HAVE_BYTESWAP_H 1
8
9/* Define if you have the clock_gettime function. */
10#define HAVE_CLOCK_GETTIME 1
11
12/* Define to 1 if you have the declaration
13 of 'clock_gettime', and to 0 if you don't. */
14#define HAVE_DECL_CLOCK_GETTIME 1
15
16/* Define if you have the ffs function. */
17#define HAVE_FFS 1
18
19/* Define if you have the ffsl function. */
20#define HAVE_FFSL 1
21
22/* Define if you have the ffsll function. */
23#define HAVE_FFSLL 1
24
25/* Floating point arithmetic is allowed. */
26#define HAVE_FLOAT_TYPES 1
27
28/* Define if you have the <ifaddrs.h> header file. */
29#define HAVE_IFADDRS_H 1
30
31/* Define if 'int64_t' is typedefed to 'long' at mini-os. */
32#define HAVE_INT64_IS_LONG_MINIOS 1
33
34/* Define if 'int64_t' is typedefed to 'long long' at mini-os. */
35#define HAVE_INT64_IS_LONG_LONG_MINIOS 0
36
37/* Define if you have the <inttypes.h> header file. */
38#define HAVE_INTTYPES_H 1
39
40/* Define if you have the mmap function. */
41#define HAVE_MMAP 1
42
43/* Define if you have the <net/bpf.h> header file. */
44/* #undef HAVE_NET_BPF_H */
45
46/* Define if you have the <net/if_dl.h> header file. */
47/* #undef HAVE_NET_IF_DL_H */
48
49/* Define if you have the <net/if_tap.h> header file. */
50/* #undef HAVE_NET_IF_TAP_H */
51
52/* Define if you have the <net/if_tun.h> header file. */
53/* #undef HAVE_NET_IF_TUN_H */
54
55/* Define if you have the <net/if_types.h> header file. */
56/* #undef HAVE_NET_IF_TYPES_H */
57
58/* Define if you have the <netdb.h> header file. */
59#define HAVE_NETDB_H 1
60
61/* Define if you have the <netpacket/packet.h> header file. */
62#define HAVE_NETPACKET_PACKET_H 1
63
64/* Define if <new.h> exists and works. */
65/* #undef HAVE_NEW_H */
66
67/* Define if <new> exists and works. */
68#define HAVE_NEW_HDR 1
69
70/* Placement new is always provided below. */
71#define HAVE_PLACEMENT_NEW 1
72
73/* Define if you have the random function. */
74#define HAVE_RANDOM 1
75
76/* Define if you have the snprintf function. */
77#define HAVE_SNPRINTF 1
78
79/* Define if you have the strerror function. */
80#define HAVE_STRERROR 1
81
82/* Define if you have the <strings.h> header file. */
83#define HAVE_STRINGS_H 1
84
85/* Define if you have the strnlen function. */
86#define HAVE_STRNLEN 1
87
88/* Define if you have the strtof function. */
89#define HAVE_STRTOF 1
90
91/* Define if you have the strtold function. */
92#define HAVE_STRTOLD 1
93
94/* Define if you have the strtoul function. */
95#define HAVE_STRTOUL 1
96
97/* Define if you have u_intXX_t types but not uintXX_t types. */
98/* #undef HAVE_U_INT_TYPES */
99
100/* Define if you have the <unistd.h> header file. */
101#define HAVE_UNISTD_H 1
102
103/* Define if you have the vsnprintf function. */
104#define HAVE_VSNPRINTF 1
105
106/* The size of a `click_jiffies_t', as computed by sizeof. */
107#define SIZEOF_CLICK_JIFFIES_T SIZEOF_INT
108
109/* The size of a `off_t', as computed by sizeof. */
110#define SIZEOF_OFF_T 8
111
112/* Use portable LLRPC */
113#define HAVE_PORTABLE_LLRPC 1
114
115/* Set feature test macros before anything is included. */
116#if HAVE_LARGE_FILE_SUPPORT && HAVE_INT64_TYPES
117# if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS != 64
118# error "bad _FILE_OFFSET_BITS, did you #include <click/config.h> first?"
119# endif
120# define _LARGEFILE_SOURCE 1
121# define _FILE_OFFSET_BITS 64
122#endif
123#ifdef __APPLE__
124# define _DARWIN_UNLIMITED_SELECT 1
125#endif
126
127/* Include integer type definitions. */
128#ifdef HAVE_INTTYPES_H
129# include <inttypes.h>
130#endif
131#include <sys/types.h>
132
133/* Define uint types in terms of u_int types, if necessary. */
134#ifdef HAVE_U_INT_TYPES
135typedef u_int8_t uint8_t;
136typedef u_int16_t uint16_t;
137typedef u_int32_t uint32_t;
138# ifdef HAVE_INT64_TYPES
139typedef u_int64_t uint64_t;
140# endif
141typedef long intptr_t; /* XXX? */
142typedef unsigned long uintptr_t;
143#endif
144
145/* Define HAVE_INT64_IS_LONG based on HAVE_INT64_IS_LONG_MINIOS. */
146#ifdef HAVE_INT64_IS_LONG_MINIOS
147# define HAVE_INT64_IS_LONG HAVE_INT64_IS_LONG_MINIOS
148#endif
149
150/* Define HAVE_INT64_IS_LONG_LONG based on HAVE_INT64_IS_LONG_LONG_MINIOS. */
151#ifdef HAVE_INT64_IS_LONG_LONG_MINIOS
152# define HAVE_INT64_IS_LONG_LONG HAVE_INT64_IS_LONG_LONG_MINIOS
153#endif
154
155/* If 64-bit integers exist, then 64-bit divide exists. */
156#ifdef HAVE_INT64_TYPES
157# define HAVE_INT64_DIVIDE 1
158#endif
159
160/* Define HAVE_USE_CLOCK_GETTIME if the clock_gettime function is usable. */
161#ifndef HAVE_USE_CLOCK_GETTIME
162# if HAVE_DECL_CLOCK_GETTIME && HAVE_CLOCK_GETTIME
163# define HAVE_USE_CLOCK_GETTIME 1
164# endif
165#endif
166
167/* Include assert macro. */
168#include <assert.h>
169
170/* Include mini-so base header */
171#ifdef __cplusplus
172extern "C"{
173#endif
174#include <mini-os/os.h>
175#ifdef __cplusplus
176}
177#endif
178
179/* Define if mmap is allowed. */
180#if defined(HAVE_SYS_MMAN_H) && defined(HAVE_MMAP)
181# define ALLOW_MMAP 1
182#endif
183
184/* Prototype strerror if we don't have it. */
185#ifndef HAVE_STRERROR
186char *strerror(int errno);
187#endif
188
189/* Use nanosecond-granularity timestamps if they are enabled. */
190#if HAVE_NANOTIMESTAMP_ENABLED
191# define TIMESTAMP_NANOSEC 1
192#endif
193
194#ifdef __cplusplus
195
196/* Provide placement new. */
197#if HAVE_NEW_HDR
198# include <new>
199#elif HAVE_NEW_H
200# include <new.h>
201#else
202inline void *operator new(size_t, void *v) { return v; }
203#endif
204
205/* Define macros that surround Click declarations. */
206#ifndef CLICK_DECLS
207# define CLICK_DECLS /* */
208# define CLICK_ENDDECLS /* */
209# define CLICK_USING_DECLS /* */
210# define CLICK_NAME(name) ::name
211#endif
212
213#endif /* __cplusplus */
214
215#endif /* CLICK_CONFIG_MINIOS_H */