comparison src/s/sunos4-1.h @ 163:0132846995bd r20-3b8

Import from CVS: tag r20-3b8
author cvs
date Mon, 13 Aug 2007 09:43:35 +0200
parents 6b37e6ddd302
children 5a88923fcbfe
comparison
equal deleted inserted replaced
162:4de2936b4e77 163:0132846995bd
44 #endif 44 #endif
45 45
46 /* Define dlopen, dlclose, dlsym. */ 46 /* Define dlopen, dlclose, dlsym. */
47 #define USE_DL_STUBS 47 #define USE_DL_STUBS
48 48
49 /* SunOS does not define strerror since it is ANSI C, but SunPro C does. */ 49 #if 0 /* mrb */
50 #if !defined(HAVE_STRERROR) && defined(__SUNPRO_C) 50 #if !defined(HAVE_STRERROR) && defined(__SUNPRO_C)
51 #define HAVE_STRERROR 51 #define HAVE_STRERROR
52 #endif
52 #endif 53 #endif
53 54
54 /* This appears to be broken on SunOS4.1.[123] */ 55 /* This appears to be broken on SunOS4.1.[123] */
55 #define BROKEN_SIGIO 56 #define BROKEN_SIGIO
57
58 /* Suppress zillions of warnings from outdated SunOS4 prototypes */
59 #ifndef NOT_C_CODE
60 #ifdef __SUNPRO_C
61 #include <memory.h>
62 #include <string.h>
63 #define memset(a,b,c) memset((char*) (a), b, c)
64 #define memcpy(a,b,c) memcpy((char*) (a), (char*) (b), c)
65 #define memcmp(a,b,c) memcmp((char*) (a), (char*) (b), c)
66 #define memchr(a,b,c) memchr((char*) (a), b, c)
67 void * __builtin_alloca(int);
68 #ifdef HAVE_X_WINDOWS
69 #include <X11/Xlib.h>
70 #define XFree(p) XFree((char*)(p))
71 #endif /* X Windows */
72 #endif /* __SUNPRO_C */
73 #endif /* C code */