]> err.no Git - sope/blob - sope-core/NGStreams/macosx/config.h
Id fixes
[sope] / sope-core / NGStreams / macosx / config.h
1 /*
2   Copyright (C) 2000-2003 SKYRIX Software AG
3
4   This file is part of OGo
5
6   OGo is free software; you can redistribute it and/or modify it under
7   the terms of the GNU Lesser General Public License as published by the
8   Free Software Foundation; either version 2, or (at your option) any
9   later version.
10
11   OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12   WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
14   License for more details.
15
16   You should have received a copy of the GNU Lesser General Public
17   License along with OGo; see the file COPYING.  If not, write to the
18   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19   02111-1307, USA.
20 */
21 #ifndef __config_h__
22 #define __config_h__
23
24 /* Define if system calls automatically restart after interruption
25    by a signal.  */
26 #undef HAVE_RESTARTABLE_SYSCALLS
27
28 /* Define if you have the gethostbyname_r function. */
29 #undef HAVE_GETHOSTBYNAME_R
30
31 /* Define if you have the gethostbyaddr_r function. */
32 #undef HAVE_GETHOSTBYADDR_R
33
34 /* Define if you have the gethostent_r function. */
35 #undef HAVE_GETHOSTENT_R
36
37 /* Define if you have posix mmap function.  */
38 #define HAVE_MMAP 1
39
40 /* Define if you have the getcwd function */
41 #define HAVE_GETCWD 1
42
43 /* Define if you have the getuid function */
44 #define HAVE_GETUID 1
45
46 /* Define if you have the getpwnam function */
47 #undef HAVE_GETPWNAM
48
49 /* Define if you have the getpwuid function */
50 #undef HAVE_GETPWUID
51
52 /* Define if you have the kill function */
53 #undef HAVE_KILL
54
55 /* Define if you have the statvfs function */
56 #undef HAVE_STATVFS
57
58 /* Define if you have the poll function */
59 //#define HAVE_POLL 1
60
61 /* Define if you have the chown function */
62 #define HAVE_CHOWN 1
63
64 /* Define if you have the symlink function */
65 #define HAVE_SYMLINK 1
66
67 /* Define if you have the readlink function */
68 #define HAVE_READLINK 1
69
70 /* Define if you have the fsync function */
71 #define HAVE_FSYNC 1
72
73 /* Define if you have the opendir family of functions */
74 #undef HAVE_OPENDIR
75
76 /* Define if you have the isatty function */
77 #define HAVE_ISATTY 1
78
79 /* Define if you have the ttyname function */
80 #define HAVE_TTYNAME 1
81
82 /* Define if you have the ttyname_r function */
83 #undef HAVE_TTYNAME_R
84
85 /* Define if you have the <string.h> header file.  */
86 #define HAVE_STRING_H 1
87
88 /* Define if you have the <strings.h> header file.  */
89 #define HAVE_STRINGS_H 1
90
91 /* Define if you have the <memory.h> header file */
92 #define HAVE_MEMORY_H 1
93
94 /* Define if you have the <stdlib.h> header file.  */
95 #define HAVE_STDLIB_H 1
96
97 /* Define if you have the <limits.h> header file.  */
98 #define HAVE_LIMITS_H 1
99
100 /* Define if you have the <libc.h> header file.  */
101 #define HAVE_LIBC_H 1
102
103 /* Define if you have the <sys/stat.h> header file */
104 #define HAVE_SYS_STAT_H 1
105
106 /* Define if you have the <sys/fcntl.h> header file */
107 #define HAVE_SYS_FCNTL_H 1
108
109 /* Define if you have the <fcntl.h> header file */
110 #define HAVE_FCNTL_H 1
111
112 /* Define if you have the <sys/vfs.h> header file */
113 #undef HAVE_SYS_VFS_H
114
115 /* Define if you have the <sys/statfs.h> header file */
116 #undef HAVE_SYS_STATFS_H
117
118 /* Define if you have the <sys/statvfs.h> header file */
119 #undef HAVE_SYS_STATVFS_H
120
121 /* Define if you have the <poll.h> header file */
122 #undef HAVE_POLL_H
123
124 /* Define if you have the <sys/poll.h> header file */
125 #undef HAVE_SYS_POLL_H
126
127 /* Define if you have the <sys/socket.h> header file */
128 #define HAVE_SYS_SOCKET_H 1
129
130 /* Define if you have the <unistd.h> header file */
131 #define HAVE_UNISTD_H 1
132
133 /* Define if you have the <sys/ioctl.h> header file */
134 #define HAVE_SYS_IOCTL_H 1
135
136 /* Define if you have the <sys/filio.h> header file */
137 #define HAVE_SYS_FILIO_H 1
138
139 /* Define if you have the <netinet/in.h> header file */
140 #define HAVE_NETINET_IN_H 1
141
142 /* Define if you have the <netdb.h> header file */
143 #define HAVE_NETDB_H 1
144
145 /* Define if you have the <windows.h> header file */
146 #undef HAVE_WINDOWS_H
147
148 /* Define if you have the <winsock.h> header file */
149 #undef HAVE_WINSOCK_H
150
151 /* Define if you have the <Windows32/Sockets.h> header file */
152 #undef HAVE_WINDOWS32_SOCKETS_H
153
154 /* Define if you have the <pwd.h> header file */
155 #define HAVE_PWD_H 1
156
157 /* Define if you have the <process.h> header file */
158 #undef HAVE_PROCESS_H
159
160 /* Define if you have the <grp.h> header file */
161 #define HAVE_GRP_H 1
162
163 /* Define if you have the <sys/file.h> header file */
164 #define HAVE_SYS_FILE_H 1
165
166 /* Define if you have the <sys/select.h> header file */
167 #define HAVE_SYS_SELECT_H 1
168
169 /* Define if you have the <time.h> header file */
170 #define HAVE_TIME_H 1
171
172 /* Define if you have the <sys/time.h> header file */
173 #define HAVE_SYS_TIME_H 1
174
175 /* Define if you have the <sys/types.h> header file */
176 #define HAVE_SYS_TYPES_H 1
177
178 /* Define if you have the <utime.h> header file */
179 #define HAVE_UTIME_H 1
180
181 /* Define if you have the <sys/errno.h> header file */
182 #define HAVE_SYS_ERRNO_H 1
183
184 /* Define if sys/wait.h is POSIX compatible */
185 #define HAVE_SYS_WAIT_H 1
186
187 /* Define this if you have the <vfork.h> header file */
188 #undef HAVE_VFORK_H
189
190 /* Define for vfork in case it's not defined */
191 #undef vfork
192
193 /* Define for pid_t in case it's not defined */
194 #define HAVE_pid_t 1
195
196 /* The following macros deal with directory entries. */
197 #define HAVE_DIRENT_H 1
198 #undef HAVE_SYS_NDIR_H
199 #define HAVE_SYS_DIR_H 1
200 #undef HAVE_NDIR_H
201 #undef HAVE_DIR_H
202
203 /* The structure alignment as determined by configure */
204 #define STRUCT_ALIGNMENT @STRUCT_ALIGNMENT@
205
206 /* The name of the target platform, obtained by configure */
207 #define TARGET_PLATFORM         "@host@"
208
209 /* define POLL constants */
210
211 #if HAVE_POLL_H
212 #  include <poll.h>
213 #endif
214 #if HAVE_SYS_POLL_H
215 #  include <sys/poll.h>
216 #endif
217
218 #ifndef POLLIN
219 # ifdef HAVE_POLL
220 #  warning "manually declared POLLIN=1 .."
221 # endif
222 #  define POLLIN     1
223 #endif
224 #ifndef POLLOUT
225 # ifdef HAVE_POLL
226 #  warning "manually declared POLLOUT=2 .."
227 # endif
228 #  define POLLOUT    2
229 #endif
230 #ifndef POLLERR
231 # ifdef HAVE_POLL
232 #  warning "manually declared POLLERR=4 .."
233 # endif
234 #  define POLLERR    4
235 #endif
236
237 #ifndef POLLRDNORM
238 #  ifdef linux
239 #    define POLLRDNORM POLLIN
240 #  else /* !linux */
241 #    ifdef POLLIN
242 #     ifdef HAVE_POLL
243 #      warning "manually declared POLLRDNORM=POLLIN .."
244 #     endif
245 #      define POLLRDNORM POLLIN
246 #    else
247 #     ifdef HAVE_POLL
248 #      warning "manually declared POLLRDNORM .."
249 #     endif
250 #      define POLLRDNORM 1
251 #    endif
252 #  endif /* !linux */
253 #endif
254
255 #ifndef POLLWRNORM
256 #  ifdef linux
257 #    define POLLWRNORM POLLOUT
258 #  else /* !linux */
259 #    ifdef POLLOUT
260 #     ifdef HAVE_POLL
261 #      warning "manually declared POLLWRNORM=POLLOUT .."
262 #     endif
263 #      define POLLWRNORM POLLOUT
264 #    else
265 #     ifdef HAVE_POLL
266 #      warning "manually declared POLLWRNORM .."
267 #     endif
268 #      define POLLWRNORM 2
269 #    endif
270 #  endif /* !linux */
271 #endif
272
273 #endif /* __config_h__ */