home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / in4wjcxu / other / irc / include / sys.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-14  |  2.2 KB  |  100 lines

  1. /************************************************************************
  2.  *   IRC - Internet Relay Chat, include/sys.h
  3.  *   Copyright (C) 1990 University of Oulu, Computing Center
  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 as published by
  7.  *   the Free Software Foundation; either version 1, or (at your option)
  8.  *   any later version.
  9.  *
  10.  *   This program is distributed in the hope that it will be useful,
  11.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *   GNU General Public License for more details.
  14.  *
  15.  *   You should have received a copy of the GNU General Public License
  16.  *   along with this program; if not, write to the Free Software
  17.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  */
  19.  
  20. #ifndef    __sys_include__
  21. #define __sys_include__
  22. #ifdef ISC202
  23. #include <net/errno.h>
  24. #else
  25. #include <sys/errno.h>
  26. #endif
  27.  
  28. #include "setup.h"
  29. #include <stdio.h>
  30. #include <sys/types.h>
  31. #include <sys/param.h>
  32.  
  33. #ifdef    UNISTDH
  34. #include <unistd.h>
  35. #endif
  36. #ifdef    STDLIBH
  37. #include <stdlib.h>
  38. #endif
  39.  
  40. #ifdef    STRINGSH
  41. #include <strings.h>
  42. #else
  43. # ifdef    STRINGH
  44. # include <string.h>
  45. # endif
  46. #endif
  47. #define    strcasecmp    mycmp
  48. #define    strncasecmp    myncmp
  49. #ifdef NOINDEX
  50. #define   index   strchr
  51. #define   rindex  strrchr
  52. /*
  53. extern    char    *index PROTO((char *, char));
  54. extern    char    *rindex PROTO((char *, char));
  55. */
  56. #endif
  57.  
  58. #ifdef AIX
  59. #include <sys/select.h>
  60. #endif
  61. #if defined(HPUX )|| defined(AIX)
  62. #include <time.h>
  63. #ifdef AIX
  64. #include <sys/time.h>
  65. #endif
  66. #else
  67. #include <sys/time.h>
  68. #endif
  69.  
  70. #if !defined(DEBUGMODE) || defined(CLIENT_COMPILE)
  71. #define MyFree(x)       if ((x) != NULL) free(x)
  72. #else
  73. #define    free(x)        MyFree(x)
  74. #endif
  75.  
  76. #ifdef NEXT
  77. #define VOIDSIG int    /* whether signal() returns int of void */
  78. #else
  79. #define VOIDSIG void    /* whether signal() returns int of void */
  80. #endif
  81.  
  82. extern    VOIDSIG    dummy();
  83.  
  84. #ifdef    DYNIXPTX
  85. #define    NO_U_TYPES
  86. #endif
  87.  
  88. #ifdef    NO_U_TYPES
  89. typedef    unsigned char    u_char;
  90. typedef    unsigned short    u_short;
  91. typedef    unsigned long    u_long;
  92. typedef    unsigned int    u_int;
  93. #endif
  94.  
  95. #ifdef    USE_VARARGS
  96. #include <varargs.h>
  97. #endif
  98.  
  99. #endif /* __sys_include__ */
  100.