includes.h revision 1f69aa52ea2e0a73ac502565df8c666ee49cab6a
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 possible build time configuration before including anything else */ 23#include "build_config.h" 24 25#include <stdlib.h> 26#include <stdio.h> 27#include <stdarg.h> 28#include <string.h> 29#ifndef _WIN32_WCE 30#ifndef CONFIG_TI_COMPILER 31#include <signal.h> 32#include <sys/types.h> 33#endif /* CONFIG_TI_COMPILER */ 34#include <errno.h> 35#endif /* _WIN32_WCE */ 36#include <ctype.h> 37 38#ifndef CONFIG_TI_COMPILER 39#ifndef _MSC_VER 40#include <unistd.h> 41#endif /* _MSC_VER */ 42#endif /* CONFIG_TI_COMPILER */ 43 44#ifndef CONFIG_NATIVE_WINDOWS 45#ifndef CONFIG_TI_COMPILER 46#include <sys/socket.h> 47#include <netinet/in.h> 48#include <arpa/inet.h> 49#ifndef __vxworks 50#ifndef __SYMBIAN32__ 51#include <sys/uio.h> 52#endif /* __SYMBIAN32__ */ 53#include <sys/time.h> 54#endif /* __vxworks */ 55#endif /* CONFIG_TI_COMPILER */ 56#endif /* CONFIG_NATIVE_WINDOWS */ 57 58#endif /* INCLUDES_H */ 59