[daemon-fix] fixed getting uid and pid when transport is not kdbus
[platform/upstream/dbus.git] / cmake / config.h.cmake
1 /* config.h. Generated by cmake from config.h.cmake */
2
3 #ifndef _DBUS_CONFIG_H
4 #define _DBUS_CONFIG_H
5 /****************************/
6 /* indicate that we are building with cmake */
7 #define DBUS_CMAKE 1
8
9 @AUTOPACKAGE_CONFIG_H_TEMPLATE@
10
11 /*
12  * Variables defined by AC_DEFINE in ../configure.ac
13  * should be placed in this file
14 */
15 #cmakedefine HAVE_GNUC_VARARGS 1
16
17 #cmakedefine DBUS_CONSOLE_AUTH_DIR "@DBUS_CONSOLE_AUTH_DIR@"
18 #cmakedefine DBUS_DATADIR  "@DBUS_DATADIR@"
19 #cmakedefine DBUS_BINDIR   "@DBUS_BINDIR@"
20 #cmakedefine DBUS_SYSTEM_CONFIG_FILE  "@DBUS_SYSTEM_CONFIG_FILE@"
21 #cmakedefine DBUS_SESSION_CONFIG_FILE "@DBUS_SESSION_CONFIG_FILE@"
22 #cmakedefine DBUS_DAEMON_NAME "@DBUS_DAEMON_NAME@"
23 #cmakedefine DBUS_SYSTEM_BUS_DEFAULT_ADDRESS  "@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@"
24 #cmakedefine DBUS_SESSION_BUS_CONNECT_ADDRESS  "@DBUS_SESSION_BUS_CONNECT_ADDRESS@"
25 #cmakedefine DBUS_MACHINE_UUID_FILE "@DBUS_MACHINE_UUID_FILE@"
26 #cmakedefine DBUS_DAEMONDIR "@DBUS_DAEMONDIR@"
27
28 #cmakedefine DBUS_ENABLE_STATS
29
30 #define TEST_LISTEN       "@TEST_LISTEN@"
31
32 // test binaries
33 #define DBUS_TEST_EXEC "@DBUS_TEST_EXEC@"
34 #define DBUS_EXEEXT "@EXEEXT@"
35
36 /* Full path to test file test/test-exit in builddir */
37 #define TEST_BUS_BINARY          "@TEST_BUS_BINARY@"
38
39 /* Some dbus features */
40 #cmakedefine DBUS_ENABLE_ANSI 1
41 #cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
42 #cmakedefine DBUS_DISABLE_ASSERT 1
43 #ifndef DBUS_DISABLE_ASSERT
44 #  define DBUS_ENABLE_ASSERT 1
45 #endif
46 #cmakedefine DBUS_DISABLE_CHECKS 1
47 #ifndef DBUS_DISABLE_CHECKS
48 #  define DBUS_ENABLE_CHECKS 1
49 #endif
50 /* xmldocs */
51 /* doxygen */
52 #cmakedefine DBUS_GCOV_ENABLED 1
53
54 /* abstract-sockets */
55
56 #cmakedefine HAVE_ABSTRACT_SOCKETS 1
57
58 #cmakedefine DBUS_PATH_OR_ABSTRACT_VALUE 1
59
60 #if (defined DBUS_PATH_OR_ABSTRACT_VALUE)
61 #define DBUS_PATH_OR_ABSTRACT @DBUS_PATH_OR_ABSTRACT_VALUE@
62 #endif
63
64 #ifdef DBUS_PATH_OR_ABSTRACT_VALUE
65 #undef DBUS_PATH_OR_ABSTRACT_VALUE
66 #endif
67
68 /* selinux */
69 /* kqueue */
70 #cmakedefine HAVE_CONSOLE_OWNER_FILE 1
71 #define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"
72
73 #cmakedefine DBUS_HAVE_ATOMIC_INT 1
74 #cmakedefine DBUS_USE_ATOMIC_INT_486 1
75 #if (defined(__i386__) || defined(__x86_64__))
76 # define DBUS_HAVE_ATOMIC_INT 1
77 # define DBUS_USE_ATOMIC_INT_486 1
78 #endif
79
80 #cmakedefine DBUS_BUILD_X11 1
81 /* For the moment, the cmake build system doesn't have an equivalent of
82  * the autoconf build system's --disable-x11-autolaunch */
83 #ifdef DBUS_BUILD_X11
84 # define DBUS_ENABLE_X11_AUTOLAUNCH 1
85 #endif
86
87 #define DBUS_DEFAULT_MESSAGE_UNIX_FDS @DEFAULT_MESSAGE_UNIX_FDS@
88
89 #define _DBUS_VA_COPY_ASSIGN(a1,a2) { a1 = a2; }
90
91 #cmakedefine DBUS_VA_COPY_FUNC
92 #if (defined DBUS_VA_COPY_FUNC)
93 # define DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
94 #endif
95
96 #ifdef DBUS_VA_COPY_FUNC
97 #undef DBUS_VA_COPY_FUNC
98 #endif
99
100 #cmakedefine DBUS_VA_COPY_AS_ARRAY @DBUS_VA_COPY_AS_ARRAY@
101
102 // headers
103 /* Define to 1 if you have dirent.h */
104 #cmakedefine   HAVE_DIRENT_H 1
105
106 /* Define to 1 if you have io.h */
107 #cmakedefine   HAVE_IO_H 1
108
109 /* Define to 1 if you have grp.h */
110 #cmakedefine   HAVE_GRP_H 1
111
112 /* Define to 1 if you have sys/poll.h */
113 #cmakedefine    HAVE_POLL 1
114
115 /* Define to 1 if you have sys/time.h */
116 #cmakedefine    HAVE_SYS_TIME 1
117
118 /* Define to 1 if you have sys/wait.h */
119 #cmakedefine    HAVE_SYS_WAIT 1
120
121 /* Define to 1 if you have time.h */
122 #cmakedefine   HAVE_TIME_H 1
123
124 /* Define to 1 if you have ws2tcpip.h */
125 #cmakedefine   HAVE_WS2TCPIP_H
126
127 /* Define to 1 if you have wspiapi.h */
128 #cmakedefine   HAVE_WSPIAPI_H 1
129
130 /* Define to 1 if you have unistd.h */
131 #cmakedefine   HAVE_UNISTD_H 1
132
133 /* Define to 1 if you have stdio.h */
134 #cmakedefine   HAVE_STDIO_H 1
135
136 /* Define to 1 if you have sys/syslimits.h */
137 #cmakedefine   HAVE_SYS_SYSLIMITS_H 1
138
139 /* Define to 1 if you have errno.h */
140 #cmakedefine   HAVE_ERRNO_H 1
141
142 /* Define to 1 if you have signal.h */
143 #cmakedefine   HAVE_SIGNAL_H 1
144
145 /* Define to 1 if you have locale.h */
146 #cmakedefine   HAVE_LOCALE_H 1
147
148 /* Define to 1 if you have inttypes.h */
149 #cmakedefine   HAVE_INTTYPES_H 1
150
151 /* Define to 1 if you have stdint.h */
152 #cmakedefine   HAVE_STDINT_H 1
153
154 // symbols
155 /* Define to 1 if you have backtrace */
156 #cmakedefine   HAVE_BACKTRACE 1
157
158 /* Define to 1 if you have getgrouplist */
159 #cmakedefine   HAVE_GETGROUPLIST 1
160
161 /* Define to 1 if you have getpeerucred */
162 #cmakedefine   HAVE_GETPEERUCRED 1
163
164 /* Define to 1 if you have nanosleep */
165 #cmakedefine   HAVE_NANOSLEEP 1
166
167 /* Define to 1 if you have getpwnam_r */
168 #cmakedefine   HAVE_POSIX_GETPWNAM_R 1
169
170 /* Define to 1 if you have socketpair */
171 #cmakedefine   HAVE_SOCKETPAIR 1
172
173 /* Define to 1 if you have setenv */
174 #cmakedefine   HAVE_SETENV 1
175
176 /* Define to 1 if you have unsetenv */
177 #cmakedefine   HAVE_UNSETENV 1
178
179 /* Define to 1 if you have clearenv */
180 #cmakedefine   HAVE_CLEARENV 1
181
182 /* Define to 1 if you have writev */
183 #cmakedefine   HAVE_WRITEV 1
184
185 /* Define to 1 if you have socklen_t */
186 #cmakedefine   HAVE_SOCKLEN_T 1
187
188 /* Define to 1 if you have setlocale */
189 #cmakedefine   HAVE_SETLOCALE 1
190
191 /* Define to 1 if you have localeconv */
192 #cmakedefine   HAVE_LOCALECONV 1
193
194 /* Define to 1 if you have strtoll */
195 #cmakedefine   HAVE_STRTOLL 1
196
197 /* Define to 1 if you have strtoull */
198 #cmakedefine   HAVE_STRTOULL 1
199
200 // structs
201 /* Define to 1 if you have struct cmsgred */
202 #cmakedefine    HAVE_CMSGCRED 1
203
204 // system type defines
205 #if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
206 # define DBUS_WIN
207 # define DBUS_WIN_FIXME 1
208 # ifdef _WIN32_WCE
209 #  define DBUS_WINCE
210 # else
211 #  define DBUS_WIN32
212 # endif
213 #else
214 # define DBUS_UNIX
215 #endif 
216
217 #if defined(_WIN32) || defined(_WIN64)
218 // mingw mode_t
219 # ifdef HAVE_STDIO_H
220 #  include <stdio.h>
221 # endif
222 # ifndef _MSC_VER
223 #  define uid_t int
224 #  define gid_t int
225 # else
226 #  define snprintf _snprintf
227    typedef int mode_t;
228 #  if !defined(_WIN32_WCE)
229 #    define strtoll _strtoi64
230 #    define strtoull _strtoui64
231 #    define HAVE_STRTOLL 1
232 #    define HAVE_STRTOULL 1
233 #  endif
234 # endif
235 #endif  // defined(_WIN32) || defined(_WIN64)
236
237 #ifdef interface
238 #undef interface
239 #endif
240
241 #ifndef SIGHUP
242 #define SIGHUP  1
243 #endif
244
245 #cmakedefine DBUS_VERBOSE_C_S 1
246 #ifdef DBUS_VERBOSE_C_S
247 #define _dbus_verbose_C_S printf
248 #else
249 #define _dbus_verbose_C_S _dbus_verbose
250 #endif 
251
252 # if defined(_MSC_VER) && !defined(inline)
253 #define inline __inline
254 #endif
255
256 #endif  // _DBUS_CONFIG_H