comparison src/s/sol2.h @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents 4103f0995bd7
children 54cc21c15cbb
comparison
equal deleted inserted replaced
69:804d1389bcd6 70:131b0175ea99
1 /* Synched up with: FSF 19.31. */ 1 /* Synched up with: FSF 19.31. */
2 2
3 #define __EXTENSIONS__
4 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */ 3 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */
5 4
6 #define SOLARIS2 5 #define SOLARIS2
7 6
8 /* SIGIO seems to be working under Solaris and it makes ^G work better... */ 7 /* SIGIO seems to be working under Solaris and it makes ^G work better... */
39 38
40 #ifndef NOT_C_CODE 39 #ifndef NOT_C_CODE
41 /* The standard Solaris library nsl has this function in it which is 40 /* The standard Solaris library nsl has this function in it which is
42 supposed to only be in the BSD compat stuff. Yuck. Of course, 41 supposed to only be in the BSD compat stuff. Yuck. Of course,
43 there isn't a prototype for it other than in /usr/ucbinclude. */ 42 there isn't a prototype for it other than in /usr/ucbinclude. */
44 int gethostname (char *, size_t); 43 int gethostname (char *, int);
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 44
56 /* XEmacs: Solaris include files miss this. */ 45 /* XEmacs: Solaris include files miss this. */
57 struct timeval; 46 struct timeval;
58 int utimes (char *file, struct timeval *tvp); 47 int utimes (char *file, struct timeval *tvp);
59 48
60 /* XEmacs addition: to this to avoid having problems when we later 49 /* XEmacs addition: to this to avoid having problems when we later
61 define INT_MAX etc. */ 50 define INT_MAX etc. */
62 #include <limits.h> 51 #include <limits.h>
63 #endif /* C_CODE */ 52 #endif
64 53
65 /* XEmacs change -- removed flags to force K & R compilation */ 54 /* XEmacs change -- removed flags to force K & R compilation */
66 55
67 /* 56 /*
68 * XEmacs change -- some Motif packages need -lgen to get regex and regcmp 57 * XEmacs change -- some Motif packages need -lgen to get regex and regcmp