includes.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * wpa_supplicant/hostapd - Default include files
  3. * Copyright (c) 2005-2006, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  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. #ifndef INCLUDES_H
  13. #define INCLUDES_H
  14. /* Include possible build time configuration before including anything else */
  15. #include "build_config.h"
  16. #include <stdlib.h>
  17. #include <stdio.h>
  18. #include <stdarg.h>
  19. #include <string.h>
  20. #ifndef _WIN32_WCE
  21. #ifndef CONFIG_TI_COMPILER
  22. #include <signal.h>
  23. #include <sys/types.h>
  24. #endif /* CONFIG_TI_COMPILER */
  25. #include <errno.h>
  26. #endif /* _WIN32_WCE */
  27. #include <ctype.h>
  28. #ifndef CONFIG_TI_COMPILER
  29. #ifndef _MSC_VER
  30. #include <unistd.h>
  31. #endif /* _MSC_VER */
  32. #endif /* CONFIG_TI_COMPILER */
  33. #ifndef CONFIG_NATIVE_WINDOWS
  34. #ifndef CONFIG_TI_COMPILER
  35. #include <sys/socket.h>
  36. #include <netinet/in.h>
  37. #include <arpa/inet.h>
  38. #ifndef __vxworks
  39. #include <sys/uio.h>
  40. #include <sys/time.h>
  41. #endif /* __vxworks */
  42. #endif /* CONFIG_TI_COMPILER */
  43. #endif /* CONFIG_NATIVE_WINDOWS */
  44. #endif /* INCLUDES_H */