socket.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2011 by Qualcomm Atheros.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software
  6. * for any purpose with or without fee is hereby granted, provided
  7. * that the above copyright notice and this permission notice appear
  8. * in all copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
  13. * THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
  14. * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  15. * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
  16. * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  17. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  18. *
  19. *--------------------------------------------------------------------*/
  20. /*====================================================================*
  21. *
  22. * socket.h - substitute sys/socket.h for systems without one;
  23. *
  24. * include Microsoft equivalent definitions and declarations;
  25. *
  26. *. Intellon INT6000 Linux Toolkit for HomePlug AV;
  27. *: Published 2006-2009 by Intellon Corp. ALL RIGHTS RESERVED;
  28. *; For demonstration; Not for production use;
  29. *
  30. *--------------------------------------------------------------------*/
  31. #ifndef SOCKET_HEADER
  32. #define SOCKET_HEADER
  33. /*====================================================================*
  34. * system header files;
  35. *--------------------------------------------------------------------*/
  36. #if defined (WIN32)
  37. #include <winsock2.h>
  38. #endif
  39. /*====================================================================*
  40. * end;
  41. *--------------------------------------------------------------------*/
  42. #endif