1 /*
2  * wpa_supplicant/hostapd - Default include files
3  * Copyright (c) 2005-2006, Jouni Malinen <j@w1.fi>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * Alternatively, this software may be distributed under the terms of BSD
10  * license.
11  *
12  * See README and COPYING for more details.
13  *
14  * This header file is included into all C files so that commonly used header
15  * files can be selected with OS specific ifdef blocks in one place instead of
16  * having to have OS/C library specific selection in many files.
17  */
18 
19 #ifndef INCLUDES_H
20 #define INCLUDES_H
21 
22 #include "supplicant_opt.h"
23 
24 #define AES_SMALL_TABLES
25 #define CONFIG_NO_RANDOM_POOL
26 #define CONFIG_INTERNAL_LIBTOMMATH
27 
28 /* Include possible build time configuration before including anything else */
29 #ifndef __ets__
30 #include <stdlib.h>
31 #include <stdio.h>
32 #include <stdarg.h>
33 #include <string.h>
34 #ifndef _WIN32_WCE
35 #ifndef CONFIG_TI_COMPILER
36 #include <signal.h>
37 #include <sys/types.h>
38 #endif /* CONFIG_TI_COMPILER */
39 #include <errno.h>
40 #endif /* _WIN32_WCE */
41 #include <ctype.h>
42 #include <time.h>
43 
44 #ifndef CONFIG_TI_COMPILER
45 #ifndef _MSC_VER
46 #include <unistd.h>
47 #endif /* _MSC_VER */
48 #endif /* CONFIG_TI_COMPILER */
49 
50 #ifndef CONFIG_NATIVE_WINDOWS
51 #ifndef CONFIG_TI_COMPILER
52 #ifndef __vxworks
53 #ifndef __SYMBIAN32__
54 #endif /* __SYMBIAN32__ */
55 #include <sys/time.h>
56 #endif /* __vxworks */
57 #endif /* CONFIG_TI_COMPILER */
58 #endif /* CONFIG_NATIVE_WINDOWS */
59 
60 #else
61 #if CONFIG_IDF_TARGET_ESP32
62 #include "esp32/rom/ets_sys.h" // will be removed in idf v5.0
63 #elif CONFIG_IDF_TARGET_ESP32S2
64 #include "esp32s2/rom/ets_sys.h"
65 #endif
66 
67 #endif /* !__ets__ */
68 
69 #endif /* INCLUDES_H */
70