includes.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. #ifndef INCLUDES_H
  19. #define INCLUDES_H
  20. /* Include possible build time configuration before including anything else */
  21. //#include "build_config.h" //don't need anymore
  22. #ifndef __ets__
  23. #include <stdlib.h>
  24. #include <stdio.h>
  25. #include <stdarg.h>
  26. #include <string.h>
  27. #ifndef _WIN32_WCE
  28. #ifndef CONFIG_TI_COMPILER
  29. #include <signal.h>
  30. #include <sys/types.h>
  31. #endif /* CONFIG_TI_COMPILER */
  32. #include <errno.h>
  33. #endif /* _WIN32_WCE */
  34. #include <ctype.h>
  35. #include <time.h>
  36. #ifndef CONFIG_TI_COMPILER
  37. #ifndef _MSC_VER
  38. #include <unistd.h>
  39. #endif /* _MSC_VER */
  40. #endif /* CONFIG_TI_COMPILER */
  41. #ifndef CONFIG_NATIVE_WINDOWS
  42. #ifndef CONFIG_TI_COMPILER
  43. //#include <sys/socket.h>
  44. //#include <netinet/in.h>
  45. //#include <arpa/inet.h>
  46. #ifndef __vxworks
  47. #ifndef __SYMBIAN32__
  48. //#include <sys/uio.h>
  49. #endif /* __SYMBIAN32__ */
  50. #include <sys/time.h>
  51. #endif /* __vxworks */
  52. #endif /* CONFIG_TI_COMPILER */
  53. #endif /* CONFIG_NATIVE_WINDOWS */
  54. #else
  55. #include "rom/ets_sys.h"
  56. #endif /* !__ets__ */
  57. #endif /* INCLUDES_H */