Mercurial > hg > xemacs-beta
comparison src/s/sunos4-0.h @ 167:85ec50267440 r20-3b10
Import from CVS: tag r20-3b10
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:45:46 +0200 |
parents | 5a88923fcbfe |
children | 2d532a89d707 |
comparison
equal
deleted
inserted
replaced
166:7a77eb660975 | 167:85ec50267440 |
---|---|
7 | 7 |
8 #include "bsd4-2.h" | 8 #include "bsd4-2.h" |
9 | 9 |
10 #ifndef SUNOS4 | 10 #ifndef SUNOS4 |
11 #define SUNOS4 | 11 #define SUNOS4 |
12 #endif | |
13 | |
14 /* XEmacs addition: */ | |
15 #ifndef HAVE_SYS_TIME_H | |
16 #define HAVE_SYS_TIME_H | |
17 #endif | 12 #endif |
18 | 13 |
19 #if 0 /* This may have been needed for an earlier version of Sun OS 4. | 14 #if 0 /* This may have been needed for an earlier version of Sun OS 4. |
20 It seems to cause warnings in 4.0.3 and 4.1. */ | 15 It seems to cause warnings in 4.0.3 and 4.1. */ |
21 #define O_NDELAY FNDELAY /* Non-blocking I/O (4.2 style) */ | 16 #define O_NDELAY FNDELAY /* Non-blocking I/O (4.2 style) */ |
39 /* these don't matter, but we have to define something to keep | 34 /* these don't matter, but we have to define something to keep |
40 sysdep.c from introducing bogus symbols */ | 35 sysdep.c from introducing bogus symbols */ |
41 #define TEXT_START 0 | 36 #define TEXT_START 0 |
42 #define DATA_START 0 | 37 #define DATA_START 0 |
43 | 38 |
44 /* XEmacs change -- Sun CC needs this to default to ANSI */ | |
45 #if __SUNPRO_C | |
46 #define C_SWITCH_SYSTEM "-Xa" | |
47 #endif | |
48 | |
49 /* #### XEmacs: #define of SYSTEM_MALLOC removed. Is this OK? FSF says: | 39 /* #### XEmacs: #define of SYSTEM_MALLOC removed. Is this OK? FSF says: |
50 | 40 |
51 In SunOS 4.1, a static function called by tzsetwall reportedly | 41 In SunOS 4.1, a static function called by tzsetwall reportedly |
52 clears the byte just past an eight byte region it mallocs, corrupting | 42 clears the byte just past an eight byte region it mallocs, corrupting |
53 GNU malloc's memory pool. But Sun's malloc doesn't seem to mind. */ | 43 GNU malloc's memory pool. But Sun's malloc doesn't seem to mind. */ |
68 extern char *strdup (); | 58 extern char *strdup (); |
69 extern char *ttyname (int); | 59 extern char *ttyname (int); |
70 extern void tzsetwall (void); | 60 extern void tzsetwall (void); |
71 extern int getpagesize (void); | 61 extern int getpagesize (void); |
72 | 62 |
73 #ifndef __SUNPRO_C | 63 #ifdef __SUNPRO_C |
74 /* Suppress zillions of warnings from outdated SunOS4 prototypes */ | 64 /* Suppress zillions of warnings from outdated SunOS4 prototypes */ |
75 /* Bother! Sun can't even get the arg types right. */ | 65 /* Bother! Sun can't even get the arg types right. */ |
76 #include <memory.h> | 66 #include <memory.h> |
77 #include <string.h> | 67 #include <string.h> |
78 #define memset(a,b,c) memset((char*) (a), b, c) | 68 #define memset(a,b,c) memset((char*) (a), b, c) |
82 void * __builtin_alloca(int); | 72 void * __builtin_alloca(int); |
83 #ifdef HAVE_X_WINDOWS | 73 #ifdef HAVE_X_WINDOWS |
84 #include <X11/Xlib.h> | 74 #include <X11/Xlib.h> |
85 #define XFree(p) XFree((char*)(p)) | 75 #define XFree(p) XFree((char*)(p)) |
86 #endif /* X Windows */ | 76 #endif /* X Windows */ |
87 #endif /* !__SUNPRO_C */ | 77 #endif /* __SUNPRO_C */ |
88 | 78 |
89 #endif /* __STDC__ */ | 79 #endif /* __STDC__ */ |
90 | 80 |
91 # ifdef __GNUC__ | 81 # ifdef __GNUC__ |
92 /* XEmacs addition: */ | 82 /* XEmacs addition: */ |