14aae569dSTrond Norbye/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2504809a9SDave Rigby
3504809a9SDave Rigby#pragma once
4504809a9SDave Rigby
5504809a9SDave Rigby#cmakedefine HAVE_BACKTRACE 1
6504809a9SDave Rigby#cmakedefine HAVE_DLADDR 1
7504809a9SDave Rigby#cmakedefine HAVE_PTHREAD_SETNAME_NP 1
866d1bc68STrond Norbye#cmakedefine HAVE_PTHREAD_GETNAME_NP 1
9b20faafbSDave Rigby#cmakedefine HAVE_SCHED_GETAFFINITY 1
10b5f07db5SJim Walker#cmakedefine HAVE_SCHED_GETCPU 1
11b5f07db5SJim Walker#cmakedefine HAVE_CPUID_H 1
1273e41e75STrond Norbye
134aae569dSTrond Norbye#ifdef WIN32
144aae569dSTrond Norbye#include <winsock2.h>
154aae569dSTrond Norbye#include <ws2tcpip.h>
164aae569dSTrond Norbye#include <windows.h>
174aae569dSTrond Norbye
184aae569dSTrond Norbye#else
194aae569dSTrond Norbye
204aae569dSTrond Norbye#if !defined(__cplusplus) && !defined(linux) && !defined(__GNUC__)
214aae569dSTrond Norbyetypedef unsigned long long uint64_t;
224aae569dSTrond Norbyetypedef long long int64_t;
234aae569dSTrond Norbye#endif
244aae569dSTrond Norbye
254aae569dSTrond Norbye#ifndef _POSIX_PTHREAD_SEMANTICS
264aae569dSTrond Norbye#define _POSIX_PTHREAD_SEMANTICS
274aae569dSTrond Norbye#endif
284aae569dSTrond Norbye
294aae569dSTrond Norbye#include <sys/wait.h>
304aae569dSTrond Norbye#include <sys/socket.h>
314aae569dSTrond Norbye#include <netinet/in.h>
324aae569dSTrond Norbye#include <netdb.h>
334aae569dSTrond Norbye#include <unistd.h>
344aae569dSTrond Norbye#include <sys/stat.h>
354aae569dSTrond Norbye#include <sys/un.h>
364aae569dSTrond Norbye#include <sys/resource.h>
374aae569dSTrond Norbye#include <sys/uio.h>
384aae569dSTrond Norbye#include <netinet/tcp.h>
394aae569dSTrond Norbye#include <arpa/inet.h>
404aae569dSTrond Norbye#include <sys/mman.h>
414aae569dSTrond Norbye#include <pwd.h>
424aae569dSTrond Norbye#include <sys/time.h>
434aae569dSTrond Norbye#include <signal.h>
444aae569dSTrond Norbye#include <inttypes.h>
454aae569dSTrond Norbye
46504809a9SDave Rigby#endif // WIN32
474aae569dSTrond Norbye
484aae569dSTrond Norbye/* Common section */
494aae569dSTrond Norbye#include <stdlib.h>
504aae569dSTrond Norbye#include <sys/types.h>
514aae569dSTrond Norbye
524aae569dSTrond Norbye#include <platform/platform.h>
53