MySQL
8.0.23
Source Code Documentation
config_static.h
Go to the documentation of this file.
1
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2
/* Consider this file as an extension to config.h, just that it contains
3
* static text. The intention is to reduce the number of #ifdefs in the rest
4
* of the source files without having to put all of them in AH_BOTTOM
5
* in configure.ac.
6
*/
7
#ifndef CONFIG_STATIC_H
8
#define CONFIG_STATIC_H 1
9
10
#ifdef WIN32
11
#define SOCKETPAIR_AF AF_INET
12
#define get_socket_error() WSAGetLastError()
13
extern
void
initialize_sockets
(
void
);
14
#else
15
#include <errno.h>
16
#define closesocket(a) close(a)
17
#define SOCKET int
18
#define SOCKETPAIR_AF AF_UNIX
19
#define SOCKET_ERROR -1
20
#define INVALID_SOCKET -1
21
#define get_socket_error() errno
22
#define initialize_sockets()
23
#endif
24
25
#define HAVE_NETDB_H 1
26
#define HAVE_NETINET_TCP_H 1
27
#define HAVE_NETINET_IN_H 1
28
#define HAVE_SIGIGNORE 1
29
30
#ifdef HAVE_DLFCN_H
31
#include <
dlfcn.h
>
32
#endif
33
34
#ifdef HAVE_LINK_H
35
#include <link.h>
36
#endif
37
38
#ifdef HAVE_STDBOOL_H
39
#include <stdbool.h>
40
#else
41
#ifndef bool
42
#define bool char
43
#define false 0
44
#define true 1
45
#endif
46
#endif
47
48
#ifdef HAVE_INTTYPES_H
49
#include <inttypes.h>
50
#endif
51
52
#ifdef HAVE_SYSEXITS_H
53
#include <
sysexits.h
>
54
#else
55
/* todo: we should move this file out of win32, because it could be used
56
* on all platforms without it's own sysexits.h */
57
#include <
win32/sysexits.h
>
58
#endif
59
60
#ifdef HAVE_SYS_WAIT_H
61
#include <sys/wait.h>
62
#endif
63
64
#ifdef HAVE_SYS_SOCKET_H
65
#include <sys/socket.h>
66
#endif
67
68
#ifdef HAVE_NETINET_IN_H
69
#include <netinet/in.h>
70
#endif
71
72
#ifdef HAVE_NETDB_H
73
#include <netdb.h>
74
#endif
75
76
#ifdef HAVE_UNISTD_H
77
#include <unistd.h>
78
#endif
79
80
#ifdef HAVE_SYS_STAT_H
81
#include <sys/stat.h>
82
#endif
83
84
#ifdef HAVE_SYS_UN_H
85
#include <sys/un.h>
86
#endif
87
88
#ifdef HAVE_SYS_RESOURCE_H
89
#include <sys/resource.h>
90
#endif
91
92
#ifdef HAVE_SYS_UIO_H
93
#include <sys/uio.h>
94
#endif
95
96
#ifdef HAVE_NETINET_TCP_H
97
#include <netinet/tcp.h>
98
#endif
99
100
#ifdef HAVE_ARPA_INET_H
101
#include <arpa/inet.h>
102
#endif
103
104
105
/* some POSIX systems need the following definition
106
* to get mlockall flags out of sys/mman.h. */
107
#ifndef _P1003_1B_VISIBLE
108
#define _P1003_1B_VISIBLE
109
#endif
110
/* need this to get IOV_MAX on some platforms. */
111
#ifndef __need_IOV_MAX
112
#define __need_IOV_MAX
113
#endif
114
115
#ifdef HAVE_PWD_H
116
#include <pwd.h>
117
#endif
118
119
#ifdef HAVE_SYS_MMAN_H
120
#include <sys/mman.h>
121
#endif
122
123
/* FreeBSD 4.x doesn't have IOV_MAX exposed. */
124
#ifndef IOV_MAX
125
#if defined(__FreeBSD__) || defined(__APPLE__)
126
# define IOV_MAX 1024
127
#endif
128
#endif
129
130
#if defined(ENABLE_SASL) || defined(ENABLE_ISASL)
131
#define SASL_ENABLED
132
#endif
133
134
#endif
sysexits.h
dlfcn.h
initialize_sockets
#define initialize_sockets()
Definition:
config_static.h:22
plugin
innodb_memcached
daemon_memcached
config_static.h
Generated by
1.8.18