Mercurial > hg > xemacs-beta
comparison src/s/sol2.h @ 74:54cc21c15cbb r20-0b32
Import from CVS: tag r20-0b32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:04:33 +0200 |
parents | 131b0175ea99 |
children | 0d2f883870bc |
comparison
equal
deleted
inserted
replaced
73:e2d7a37b7c8d | 74:54cc21c15cbb |
---|---|
1 /* Synched up with: FSF 19.31. */ | 1 /* Synched up with: FSF 19.31. */ |
2 | 2 |
3 #define __EXTENSIONS__ | |
3 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */ | 4 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */ |
4 | 5 |
5 #define SOLARIS2 | 6 #define SOLARIS2 |
6 | 7 |
7 /* SIGIO seems to be working under Solaris and it makes ^G work better... */ | 8 /* SIGIO seems to be working under Solaris and it makes ^G work better... */ |
40 /* The standard Solaris library nsl has this function in it which is | 41 /* The standard Solaris library nsl has this function in it which is |
41 supposed to only be in the BSD compat stuff. Yuck. Of course, | 42 supposed to only be in the BSD compat stuff. Yuck. Of course, |
42 there isn't a prototype for it other than in /usr/ucbinclude. */ | 43 there isn't a prototype for it other than in /usr/ucbinclude. */ |
43 int gethostname (char *, int); | 44 int gethostname (char *, int); |
44 | 45 |
46 /* Get non-ANSI functions from ANSI header files in cc -Xc mode. | |
47 Sun has promised to fix setjmp.h */ | |
48 #if __STDC__ == 1 | |
49 #ifndef __GNUC__ | |
50 #define _POSIX_C_SOURCE 1 | |
51 #include <setjmp.h> | |
52 #undef _POSIX_C_SOURCE | |
53 #endif /* __GNUC__ */ | |
54 #endif /* __STDC__ */ | |
55 | |
45 /* XEmacs: Solaris include files miss this. */ | 56 /* XEmacs: Solaris include files miss this. */ |
46 struct timeval; | 57 struct timeval; |
47 int utimes (char *file, struct timeval *tvp); | 58 int utimes (char *file, struct timeval *tvp); |
48 | 59 |
49 /* XEmacs addition: to this to avoid having problems when we later | 60 /* XEmacs addition: to this to avoid having problems when we later |
50 define INT_MAX etc. */ | 61 define INT_MAX etc. */ |
51 #include <limits.h> | 62 #include <limits.h> |
52 #endif | 63 #endif /* C_CODE */ |
53 | 64 |
54 /* XEmacs change -- removed flags to force K & R compilation */ | 65 /* XEmacs change -- removed flags to force K & R compilation */ |
55 | 66 |
56 /* | 67 /* |
57 * XEmacs change -- some Motif packages need -lgen to get regex and regcmp | 68 * XEmacs change -- some Motif packages need -lgen to get regex and regcmp |