socket.h 938 B

123456789101112131415161718192021222324252627282930313233
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  4. *
  5. * All rights reserved.
  6. *
  7. *====================================================================*/
  8. /*====================================================================*
  9. *
  10. * socket.h - substitute sys/socket.h for systems without one;
  11. *
  12. * include Microsoft equivalent definitions and declarations;
  13. *
  14. *--------------------------------------------------------------------*/
  15. #ifndef SOCKET_HEADER
  16. #define SOCKET_HEADER
  17. /*====================================================================*
  18. * system header files;
  19. *--------------------------------------------------------------------*/
  20. #if defined (WIN32)
  21. #include <winsock2.h>
  22. #endif
  23. /*====================================================================*
  24. * end;
  25. *--------------------------------------------------------------------*/
  26. #endif