Debian Codegraph @

lib/config.messy.h

raw symbols SCIP
1 /*
2 * fstrcmp - fuzzy string compare library
3 * Copyright (C) 2009 Peter Miller
4 * Written by Peter Miller <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or (at
9 * your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef LIB_CONFIG_MESSY_H
21 #define LIB_CONFIG_MESSY_H
22
23 /*
24 * Make sure Solaris includes POSIX extensions.
25 */
26 #if (defined(__sun) || defined(__sun__) || defined(sun)) && \
27 (defined(__svr4__) || defined(svr4))
28
29 #ifndef _POSIX_C_SOURCE
30 #define _POSIX_C_SOURCE 1
31 #endif
32
33 #ifndef __EXTENSIONS__
34 #define __EXTENSIONS__ 1
35 #endif
36
37 /*
38 * fix a glitch in Solaris's <sys/time.h>
39 * which only show's up when you turn __EXTENSIONS__ on
40 */
41 #define _timespec timespec /* fix 2.4 */
42 #define _tv_sec tv_sec /* fix 2.5.1 */
43
44 /*
45 * The Solaris implementation of wait4() is broken.
46 * Don't use it.
47 */
48 #undef HAVE_WAIT4
49
50 #endif
51
52 #endif /* LIB_CONFIG_MESSY_H */