src/protocols/zephyr/sysdep.h

changeset 11027
4d9a6e854cec
parent 10867
b39f9b646d6c
child 11107
aea16904fa77
equal deleted inserted replaced
11026:1f13c483db00 11027:4d9a6e854cec
2 * It contains system-dependent header code. 2 * It contains system-dependent header code.
3 * 3 *
4 * Created by: Greg Hudson 4 * Created by: Greg Hudson
5 * 5 *
6 * $Source$ 6 * $Source$
7 * $Author: thekingant $ 7 * $Author: nosnilmot $
8 * $Zephyr: /mit/zephyr/src/include/zephyr/RCS/zephyr_conf.h,v 1.8 90/12/21 17:40:40 raeburn Exp $ 8 * $Zephyr: /mit/zephyr/src/include/zephyr/RCS/zephyr_conf.h,v 1.8 90/12/21 17:40:40 raeburn Exp $
9 * 9 *
10 * Copyright (c) 1988,1991 by the Massachusetts Institute of Technology. 10 * Copyright (c) 1988,1991 by the Massachusetts Institute of Technology.
11 * For copying and distribution information, see the file 11 * For copying and distribution information, see the file
12 * "mit-copyright.h". 12 * "mit-copyright.h".
28 #include <sys/types.h> 28 #include <sys/types.h>
29 #include <sys/stat.h> 29 #include <sys/stat.h>
30 #include <sys/param.h> 30 #include <sys/param.h>
31 #include <sys/time.h> 31 #include <sys/time.h>
32 32
33 #ifdef STDC_HEADERS 33 #if defined(STDC_HEADERS) || defined(HAVE_STDLIB_H)
34 # include <stdlib.h> 34 # include <stdlib.h>
35 #else 35 #else
36 # ifdef HAVE_MALLOC_H 36 # ifdef HAVE_MALLOC_H
37 # include <malloc.h> 37 # include <malloc.h>
38 # else 38 # else
57 extern char *sys_errlist[]; 57 extern char *sys_errlist[];
58 # define strerror(x) (sys_errlist[(x)]) 58 # define strerror(x) (sys_errlist[(x)])
59 #endif 59 #endif
60 60
61 /* Strings. */ 61 /* Strings. */
62 #ifdef STDC_HEADERS 62 #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
63 # include <string.h> 63 # include <string.h>
64 #else 64 #else
65 # ifndef HAVE_STRCHR 65 # ifndef HAVE_STRCHR
66 # define strchr index 66 # define strchr index
67 # define strrchr rindex 67 # define strrchr rindex

mercurial