SCCS-vsn: usr.sbin/sendmail/src/READ_ME 8.25
SCCS-vsn: usr.sbin/sendmail/src/conf.h 8.35
SCCS-vsn: usr.sbin/sendmail/src/util.c 8.11
#
# %sccs.include.redist.sh%
#
#
# %sccs.include.redist.sh%
#
-# @(#)READ_ME 8.24 (Berkeley) %G%
+# @(#)READ_ME 8.25 (Berkeley) %G%
#
This directory contains the source files for sendmail.
#
This directory contains the source files for sendmail.
If set, assumes that some header file defines sys_errlist.
This may be needed if you get type conflicts on this
variable -- otherwise don't worry about it.
If set, assumes that some header file defines sys_errlist.
This may be needed if you get type conflicts on this
variable -- otherwise don't worry about it.
+WAITUNION The wait(2) routine takes a "union wait" argument instead
+ of an integer argument. This is for compatibility with
+ old versions of BSD.
+-----------------------+
+-----------------------+
-(Version 8.24, last update %G% 09:13:44)
+(Version 8.25, last update %G% 10:32:22)
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)conf.h 8.34 (Berkeley) %G%
+ * @(#)conf.h 8.35 (Berkeley) %G%
# define HASINITGROUPS 1 /* has initgroups(3) call */
# define HASSTATFS 1 /* has the statfs(2) syscall */
# define FORK fork /* no vfork primitive available */
# define HASINITGROUPS 1 /* has initgroups(3) call */
# define HASSTATFS 1 /* has the statfs(2) syscall */
# define FORK fork /* no vfork primitive available */
+# define WAITUNION 1 /* use "union wait" as wait argument type */
# define setpgid BSDsetpgrp
# define GIDSET_T gid_t
# endif
# define setpgid BSDsetpgrp
# define GIDSET_T gid_t
# endif
-static char sccsid[] = "@(#)util.c 8.10 (Berkeley) %G%";
+static char sccsid[] = "@(#)util.c 8.11 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
+#ifdef WAITUNION
+ union wait st;
+#else
i = wait(&st);
} while ((i >= 0 || errno == EINTR) && i != pid);
if (i < 0)
i = wait(&st);
} while ((i >= 0 || errno == EINTR) && i != pid);
if (i < 0)
- st = -1;
- return (st);
+ return -1;
+#ifdef WAITUNION
+ return st.w_status;
+#else
+ return st;
+#endif
}
\f/*
** BITINTERSECT -- tell if two bitmaps intersect
}
\f/*
** BITINTERSECT -- tell if two bitmaps intersect