Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1 | /* |
| 2 | * wpa_supplicant/hostapd - Default include files |
| 3 | * Copyright (c) 2005-2006, Jouni Malinen <j@w1.fi> |
| 4 | * |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame] | 5 | * This software may be distributed under the terms of the BSD license. |
| 6 | * See README for more details. |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 7 | * |
| 8 | * This header file is included into all C files so that commonly used header |
| 9 | * files can be selected with OS specific ifdef blocks in one place instead of |
| 10 | * having to have OS/C library specific selection in many files. |
| 11 | */ |
| 12 | |
| 13 | #ifndef INCLUDES_H |
| 14 | #define INCLUDES_H |
| 15 | |
| 16 | /* Include possible build time configuration before including anything else */ |
| 17 | #include "build_config.h" |
| 18 | |
| 19 | #include <stdlib.h> |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 20 | #include <stddef.h> |
Hai Shalom | b755a2a | 2020-04-23 21:49:02 -0700 | [diff] [blame] | 21 | #include <stdbool.h> |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 22 | #include <stdio.h> |
| 23 | #include <stdarg.h> |
| 24 | #include <string.h> |
| 25 | #ifndef _WIN32_WCE |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 26 | #include <signal.h> |
| 27 | #include <sys/types.h> |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 28 | #include <errno.h> |
| 29 | #endif /* _WIN32_WCE */ |
| 30 | #include <ctype.h> |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 31 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 32 | #ifndef _MSC_VER |
| 33 | #include <unistd.h> |
| 34 | #endif /* _MSC_VER */ |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 35 | |
| 36 | #ifndef CONFIG_NATIVE_WINDOWS |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 37 | #include <sys/socket.h> |
| 38 | #include <netinet/in.h> |
| 39 | #include <arpa/inet.h> |
| 40 | #ifndef __vxworks |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 41 | #include <sys/uio.h> |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 42 | #include <sys/time.h> |
| 43 | #endif /* __vxworks */ |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 44 | #endif /* CONFIG_NATIVE_WINDOWS */ |
| 45 | |
| 46 | #endif /* INCLUDES_H */ |