darwin: do not use _XOPEN_SOURCE
[charm.git] / src / arch / mpi-darwin-x86_64 / conv-mach.h
1 #ifndef _CONV_MACH_H
2 #define _CONV_MACH_H
3
4 #define CMK_AMD64                                          1
5 #define CMK_64BIT                                          1
6 #define CMK_CONVERSE_MPI                                   1
7
8 #define CMK_DEFAULT_MAIN_USES_COMMON_CODE                  1
9 #define CMK_NOT_USE_TLS_THREAD                             1
10
11 #define CMK_ASYNC_NOT_NEEDED                               0
12 #define CMK_ASYNC_USE_FIOASYNC_AND_FIOSETOWN               0
13 #define CMK_ASYNC_USE_FIOASYNC_AND_SIOCSPGRP               0
14 #define CMK_ASYNC_USE_FIOSSAIOSTAT_AND_FIOSSAIOOWN         0
15 #define CMK_ASYNC_USE_F_SETFL_AND_F_SETOWN                 1
16
17 #define CMK_GETPAGESIZE_AVAILABLE                          0
18
19 #define CMK_MALLOC_USE_GNU_MALLOC                          0
20 #define CMK_MALLOC_USE_OS_BUILTIN                          1
21 #define CMK_MALLOC_USE_GNUOLD_MALLOC                       0
22
23 #define CMK_MEMORY_BUILD_GNU_HOOKS                         0
24 #define CMK_MEMORY_PAGESIZE                                4096
25 #define CMK_MEMORY_PROTECTABLE                             0
26
27
28 #undef CMK_SSH_IS_A_COMMAND
29 #define CMK_SSH_IS_A_COMMAND                               1
30 #undef CMK_SSH_NOT_NEEDED
31 #define CMK_SSH_NOT_NEEDED                                 0
32
33 #define CMK_SHARED_VARS_UNAVAILABLE                        1
34 #define CMK_SHARED_VARS_UNIPROCESSOR                       0
35 #define CMK_SHARED_VARS_POSIX_THREADS_SMP                  0
36
37 #define CMK_THREADS_USE_PTHREADS                           0
38 #define CMK_THREADS_ARE_WIN32_FIBERS                       0
39 #define CMK_THREADS_USE_CONTEXT                            0
40 #define CMK_THREADS_USE_JCONTEXT                           1
41
42 #define CMK_SIGNAL_NOT_NEEDED                              0
43 #define CMK_SIGNAL_USE_SIGACTION                           0
44 #define CMK_SIGNAL_USE_SIGACTION_WITH_RESTART              1
45
46 #define CMK_THREADS_REQUIRE_NO_CPV                         0
47 #define CMK_THREADS_COPY_STACK                             0
48
49 #define CMK_TIMER_USE_GETRUSAGE                            1
50 #define CMK_TIMER_USE_SPECIAL                              0
51 #define CMK_TIMER_USE_TIMES                                0
52
53
54 #define CMK_DEBUG_MODE                                     0
55 #define CMK_WEB_MODE                                       1
56
57 #define CMK_LBDB_ON                                        1
58
59 #undef CMK_STACKSIZE_DEFAULT
60 #define CMK_STACKSIZE_DEFAULT                              262144
61
62 //#define CMK_NO_ISO_MALLOC                                1
63
64 #define CMK_WHEN_PROCESSOR_IDLE_BUSYWAIT                   1
65 #define CMK_WHEN_PROCESSOR_IDLE_USLEEP                     0
66
67 /* Mac-specific optimizations */
68 #undef CMK_USE_POLL
69 #define CMK_USE_POLL                                       0
70 #define CMK_USE_KQUEUE                                     1
71
72 #endif
73