You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

92 lines
2.8 KiB

  1. /***************************************************************************
  2. * Copyright (C) 2006 by Dominic Rath <Dominic.Rath@gmx.de> *
  3. * Copyright (C) 2007-2008 by √ėyvind Harboe <oyvind.harboe@zylin.com> *
  4. * Copyright (C) 2008 by Spencer Oliver <spen@spen-soft.co.uk> *
  5. * Copyright (C) 2009 by Zachary T Welch <zw@superlucidity.net> *
  6. * *
  7. * This program is free software; you can redistribute it and/or modify *
  8. * it under the terms of the GNU General Public License as published by *
  9. * the Free Software Foundation; either version 2 of the License, or *
  10. * (at your option) any later version. *
  11. * *
  12. * This program is distributed in the hope that it will be useful, *
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  15. * GNU General Public License for more details. *
  16. * *
  17. * You should have received a copy of the GNU General Public License *
  18. * along with this program; if not, write to the *
  19. * Free Software Foundation, Inc., *
  20. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
  21. ***************************************************************************/
  22. #ifndef SYSTEM_H
  23. #define SYSTEM_H
  24. /* standard C library header files */
  25. #include <stdio.h>
  26. #include <stdlib.h>
  27. #include <string.h>
  28. #include <assert.h>
  29. #include <ctype.h>
  30. #include <errno.h>
  31. /* +++ AC_HEADER_TIME +++ */
  32. #ifdef TIME_WITH_SYS_TIME
  33. # include <sys/time.h>
  34. # include <time.h>
  35. #else
  36. # ifdef HAVE_SYS_TIME_H
  37. # include <sys/time.h>
  38. # else
  39. # include <time.h>
  40. # endif
  41. #endif
  42. /* --- AC_HEADER_TIME --- */
  43. /* +++ platform specific headers +++ */
  44. #ifdef _WIN32
  45. #include <winsock2.h>
  46. #include <ws2tcpip.h>
  47. #include <sys/types.h>
  48. #include <sys/stat.h>
  49. #endif
  50. /* --- platform specific headers --- */
  51. #ifdef HAVE_SYS_SOCKET_H
  52. #include <sys/socket.h>
  53. #endif
  54. #ifdef HAVE_SYS_POLL_H
  55. #include <sys/poll.h>
  56. #endif
  57. #ifdef __ECOS
  58. /* missing from eCos */
  59. #ifndef EFAULT
  60. #define EFAULT 14 /* Bad address */
  61. #endif
  62. #endif
  63. #ifdef HAVE_NETINET_IN_H
  64. #include <netinet/in.h>
  65. #endif
  66. #ifdef HAVE_SYS_SELECT_H
  67. #include <sys/select.h> /* select, FD_SET and friends (POSIX.1-2001) */
  68. #endif
  69. #ifdef HAVE_SYS_PARAM_H
  70. #include <sys/param.h> /* for MIN/MAX macros */
  71. #endif
  72. #ifdef HAVE_UNISTD_H
  73. #include <unistd.h>
  74. #endif
  75. #ifdef HAVE_FCNTL_H
  76. #include <fcntl.h>
  77. #endif
  78. #ifndef true
  79. #define true 1
  80. #define false 0
  81. #endif
  82. #endif /* SYSTEM_H */