1 /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 
3 #pragma once
4 
5 #cmakedefine HAVE_BACKTRACE 1
6 #cmakedefine HAVE_DLADDR 1
7 #cmakedefine HAVE_PTHREAD_SETNAME_NP 1
8 #cmakedefine HAVE_PTHREAD_GETNAME_NP 1
9 #cmakedefine HAVE_SCHED_GETAFFINITY 1
10 #cmakedefine HAVE_SCHED_GETCPU 1
11 #cmakedefine HAVE_CPUID_H 1
12 
13 #ifdef WIN32
14 #include <winsock2.h>
15 #include <ws2tcpip.h>
16 #include <windows.h>
17 
18 #else
19 
20 #if !defined(__cplusplus) && !defined(linux) && !defined(__GNUC__)
21 typedef unsigned long long uint64_t;
22 typedef long long int64_t;
23 #endif
24 
25 #ifndef _POSIX_PTHREAD_SEMANTICS
26 #define _POSIX_PTHREAD_SEMANTICS
27 #endif
28 
29 #include <sys/wait.h>
30 #include <sys/socket.h>
31 #include <netinet/in.h>
32 #include <netdb.h>
33 #include <unistd.h>
34 #include <sys/stat.h>
35 #include <sys/un.h>
36 #include <sys/resource.h>
37 #include <sys/uio.h>
38 #include <netinet/tcp.h>
39 #include <arpa/inet.h>
40 #include <sys/mman.h>
41 #include <pwd.h>
42 #include <sys/time.h>
43 #include <signal.h>
44 #include <inttypes.h>
45 
46 #endif // WIN32
47 
48 /* Common section */
49 #include <stdlib.h>
50 #include <sys/types.h>
51 
52 #include <platform/platform.h>
53