comparison src/s/sol2-4.h @ 11950:e45a4d0aae48

Move #undef HAVE_VFORK to s/sol2-3.h. Define VFORK_RETURN_TYPE.
author Karl Heuer <kwzh@gnu.org>
date Fri, 26 May 1995 22:07:55 +0000
parents 8d6752fefce7
children c0cef571e5e3
comparison
equal deleted inserted replaced
11949:cb9697be9f33 11950:e45a4d0aae48
4 4
5 #define SOLARIS2_4 5 #define SOLARIS2_4
6 6
7 /* Solaris 2.4 has a broken vfork. So we don't use it; 7 /* Solaris 2.4 has a broken vfork. So we don't use it;
8 we use the alternate definition in sysdep.c. 8 we use the alternate definition in sysdep.c.
9 But a header file has a declaration 9 But a header file has a declaration
10 that conflicts with the definition of vfork in sysdep.c. 10 that would conflict with the definition of vfork in sysdep.c.
11 This kludge should prevent the conflict. */ 11 So we'll choose the return type to match the system header. */
12 #define pid_t int 12 #define VFORK_RETURN_TYPE pid_t
13 13
14 /* Get rid of -traditional and let const really do its thing. */ 14 /* Get rid of -traditional and let const really do its thing. */
15 15
16 #ifdef __GNUC__ 16 #ifdef __GNUC__
17 #undef C_SWITCH_SYSTEM 17 #undef C_SWITCH_SYSTEM
18 #undef const 18 #undef const
19 #endif /* __GNUC__ */ 19 #endif /* __GNUC__ */
20
21 /* David Miller <davem@caip.rutgers.edu> says vfork fails on 2.4. */
22 #undef HAVE_VFORK