annotate src/s/sol2-5.h @ 138:6608ceec7cf8 r20-2b3

Import from CVS: tag r20-2b3
author cvs
date Mon, 13 Aug 2007 09:31:46 +0200
parents ac2d302a0011
children 6b37e6ddd302
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Synched up with: FSF 19.31. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 /* Handle Solaris 2.5. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 #include "sol2-4.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 #if 0 /* A recent patch in unexelf.c should eliminate the need for this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 /* Don't use the shared libraries for -lXt and -lXaw,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 to work around a linker bug in Solaris 2.5.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 (This also affects the other libraries used specifically for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 the X toolkit, which may not be necessary.) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 #define LIBXT_STATIC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 #define STATIC_OPTION -Xlinker -Bstatic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 #define DYNAMIC_OPTION -Xlinker -Bdynamic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 #define STATIC_OPTION -Bstatic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 #define DYNAMIC_OPTION -Bdynamic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 #endif /* 0 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 #ifndef NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 /* Solaris 2.5 is the first Solaris that has getpagesize(), srandom()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 and random(), but they forgot to add prototypes to the header
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 files. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 int getpagesize (void);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 long random (void);
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
30 void srandom (unsigned int seed);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 #endif /* NOT_C_CODE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 /* 2.5 now has random back in libc but we don't want to use it. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 #undef HAVE_RANDOM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 /* Apparently this is not necessary here, and it causes 10% CPU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 chewage. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 #undef BROKEN_SIGCHLD