-
Notifications
You must be signed in to change notification settings - Fork 3
/
config-bsdmodule.h.in
86 lines (65 loc) · 2.5 KB
/
config-bsdmodule.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* Process this file with configure to produce config-bsdmodule.h. -*- mode: c -*- */
#ifndef CLICK_CONFIG_BSDMODULE_H
#define CLICK_CONFIG_BSDMODULE_H
/* Define stuff under a FreeBSD module. */
#ifndef __FreeBSD__
# error "I must be compiled on a FreeBSD machine"
#endif
/* Define if Click should use an adaptive scheduler to share the CPU(s) more
fairly with the kernel. */
#undef HAVE_ADAPTIVE_SCHEDULER
/* Define if your BSD kernel has polling extensions. */
#undef HAVE_BSD_POLLING
/* Define if your BSD kernel has Click extensions. */
#undef HAVE_CLICK_BSD_KERNEL
/* Define if 'int64_t' is typedefed to 'long' in bsdmodule. */
#undef HAVE_INT64_IS_LONG_BSDMODULE
/* Define if 'int64_t' is typedefed to 'long long' in bsdmodule. */
#undef HAVE_INT64_IS_LONG_LONG_BSDMODULE
/* Define to enable assertion checking. Failed assertions will print a message
and optionally stop the router. */
#undef HAVE_KERNEL_ASSERT
/* Define if NETISR scheduling should be used. */
#undef BSD_NETISRSCHED
/* The size of a `click_jiffies_t', as computed by sizeof. */
#define SIZEOF_CLICK_JIFFIES_T SIZEOF_INT
/* Include integer and other type definitions. */
#include <sys/types.h>
/* Define assert macro. */
# ifdef __cplusplus
extern "C" {
# endif
void click_assert_failed(const char *file, int line, const char *problem_text);
# ifdef __cplusplus
}
# endif
#ifdef HAVE_KERNEL_ASSERT
# define assert(x) ((x) ? (void)0 : click_assert_failed(__FILE__, __LINE__, #x))
#else
# define assert(x) /* nada */
#endif
/* Define likely and unlikely macros. */
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
/* Define HAVE_INT64_IS_LONG based on HAVE_INT64_IS_LONG_BSDMODULE. */
#ifdef HAVE_INT64_IS_LONG_BSDMODULE
# define HAVE_INT64_IS_LONG HAVE_INT64_IS_LONG_BSDMODULE
#endif
/* Define HAVE_INT64_IS_LONG_LONG based on HAVE_INT64_IS_LONG_LONG_BSDMODULE. */
#if HAVE_LONG_LONG && defined(HAVE_INT64_IS_LONG_LONG_BSDMODULE)
# define HAVE_INT64_IS_LONG_LONG HAVE_INT64_IS_LONG_LONG_BSDMODULE
#endif
#ifdef __cplusplus
/* Declare operator new. */
void *operator new(size_t) throw ();
void *operator new[](size_t) throw ();
/* Provide placement new. */
inline void *operator new(size_t, void *v) throw () { return v; }
#define HAVE_PLACEMENT_NEW 1
/* Define macros that surround Click declarations. */
#define CLICK_DECLS namespace Click {
#define CLICK_ENDDECLS }
#define CLICK_USING_DECLS using namespace Click;
#define CLICK_NAME(name) ::Click::name
#endif /* __cplusplus */
#endif /* CLICK_CONFIG_BSDMODULE_H */