includes.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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"
  22. #include <stdlib.h>
  23. #include <stdio.h>
  24. #include <stdarg.h>
  25. #include <string.h>
  26. #ifndef _WIN32_WCE
  27. #ifndef CONFIG_TI_COMPILER
  28. #include <signal.h>
  29. #include <sys/types.h>
  30. #endif /* CONFIG_TI_COMPILER */
  31. #include <errno.h>
  32. #endif /* _WIN32_WCE */
  33. #include <ctype.h>
  34. #include <time.h>
  35. #ifndef CONFIG_TI_COMPILER
  36. #ifndef _MSC_VER
  37. #include <unistd.h>
  38. #endif /* _MSC_VER */
  39. #endif /* CONFIG_TI_COMPILER */
  40. #ifndef CONFIG_NATIVE_WINDOWS
  41. #ifndef CONFIG_TI_COMPILER
  42. #include <sys/socket.h>
  43. #include <netinet/in.h>
  44. #include <arpa/inet.h>
  45. #ifndef __vxworks
  46. #ifndef __SYMBIAN32__
  47. #include <sys/uio.h>
  48. #endif /* __SYMBIAN32__ */
  49. #include <sys/time.h>
  50. #endif /* __vxworks */
  51. #endif /* CONFIG_TI_COMPILER */
  52. #endif /* CONFIG_NATIVE_WINDOWS */
  53. #endif /* INCLUDES_H */