1 /* @(#)config.h	1.14 09/04/19 Copyright 1998-2003 Heiko Eissfeldt, Copyright 2006-2009 J. Schilling */
2 /*
3  *	a central configuration file
4  */
5 /*
6  * The contents of this file are subject to the terms of the
7  * Common Development and Distribution License, Version 1.0 only
8  * (the "License").  You may not use this file except in compliance
9  * with the License.
10  *
11  * See the file CDDL.Schily.txt in this distribution for details.
12  * A copy of the CDDL is also available via the Internet at
13  * http://www.opensource.org/licenses/cddl1.txt
14  *
15  * When distributing Covered Code, include this CDDL HEADER in each
16  * file and include the License file CDDL.Schily.txt from this distribution.
17  */
18 
19 #ifndef	_CONFIG_H
20 #define	_CONFIG_H
21 #include <schily/mconfig.h>
22 
23 #if	__STDC__-0 != 0 || (defined PROTOTYPES && defined STDC_HEADERS)
24 #define	UINT_C(a)	(a##u)
25 #define	ULONG_C(a)	(a##ul)
26 #define	USHORT_C(a)	(a##uh)
27 #define	CONCAT(a, b)	a##b
28 #else
29 #define	UINT_C(a)	((unsigned) a)
30 #define	ULONG_C(a)	((unsigned long) a)
31 #define	USHORT_C(a)	((unsigned short) a)
32 			/* CSTYLED */
33 #define	CONCAT(a, b)	a/**/b
34 #endif
35 
36 #include "lconfig.h"
37 
38 /*
39  * First the old static check.
40  */
41 #ifdef	__BEOS__
42 #define	HAVE_AREAS	1
43 #endif
44 
45 #if	defined(HAVE_OS_H) && \
46 	defined(HAVE_CLONE_AREA) && defined(HAVE_CREATE_AREA) && \
47 	defined(HAVE_DELETE_AREA)
48 #	define	HAVE_BEOS_AREAS	/* BeOS/Zeta/Haiku */
49 #	ifndef	HAVE_AREAS
50 #		define	HAVE_AREAS	1
51 #	endif
52 #endif
53 
54 
55 #if defined HAVE_FORK && (defined(HAVE_SMMAP) || defined(HAVE_USGSHM) || \
56 			defined(HAVE_DOSALLOCSHAREDMEM) || defined(HAVE_AREAS))
57 #define	HAVE_FORK_AND_SHAREDMEM
58 #undef	FIFO
59 #define	FIFO
60 #else
61 #undef	FIFO
62 #endif
63 #if	!defined	HAVE_MEMMOVE
64 #define	memmove(dst, src, size)	movebytes((src), (dst), (size))
65 #endif
66 
67 #endif	/* _CONFIG_H */
68