comparison src/s/sunos4-0.h @ 165:5a88923fcbfe r20-3b9

Import from CVS: tag r20-3b9
author cvs
date Mon, 13 Aug 2007 09:44:42 +0200
parents 0132846995bd
children 85ec50267440
comparison
equal deleted inserted replaced
164:4e0740e5aab2 165:5a88923fcbfe
69 extern char *ttyname (int); 69 extern char *ttyname (int);
70 extern void tzsetwall (void); 70 extern void tzsetwall (void);
71 extern int getpagesize (void); 71 extern int getpagesize (void);
72 72
73 #ifndef __SUNPRO_C 73 #ifndef __SUNPRO_C
74 /* Suppress zillions of warnings from outdated SunOS4 prototypes */
74 /* Bother! Sun can't even get the arg types right. */ 75 /* Bother! Sun can't even get the arg types right. */
75 #include <string.h> /* But we need to include this first because 76 #include <memory.h>
76 *sometimes* (i.e. when using SparcWorks) the 77 #include <string.h>
77 correct prototypes are provided. */ 78 #define memset(a,b,c) memset((char*) (a), b, c)
78 #define memset(ptr, val, size) memset ((char *) ptr, val, size) 79 #define memcpy(a,b,c) memcpy((char*) (a), (char*) (b), c)
79 #define memcpy(dest, src, size) \ 80 #define memcmp(a,b,c) memcmp((char*) (a), (char*) (b), c)
80 memcpy ((char *) dest, (CONST char *) src, size) 81 #define memchr(a,b,c) memchr((char*) (a), b, c)
81 #define memcmp(src1, src2, size) \ 82 void * __builtin_alloca(int);
82 memcmp ((CONST char *) src1, (CONST char *) src2, size) 83 #ifdef HAVE_X_WINDOWS
84 #include <X11/Xlib.h>
85 #define XFree(p) XFree((char*)(p))
86 #endif /* X Windows */
83 #endif /* !__SUNPRO_C */ 87 #endif /* !__SUNPRO_C */
84 88
85 #endif /* __STDC__ */ 89 #endif /* __STDC__ */
86 90
87 # ifdef __GNUC__ 91 # ifdef __GNUC__
96 to match GCC's fixed stat.h. */ 100 to match GCC's fixed stat.h. */
97 # define MKDIR_PROTOTYPE \ 101 # define MKDIR_PROTOTYPE \
98 int mkdir (const char *dpath, unsigned short dmode) 102 int mkdir (const char *dpath, unsigned short dmode)
99 # endif /* __GNUC__ */ 103 # endif /* __GNUC__ */
100 104
101 #endif /* !NOT_C_CODE */ 105 #endif /* C_CODE */
102 106
103 #endif /* _S_SUNOS4_H_ */ 107 #endif /* _S_SUNOS4_H_ */