Get sendmail to detect when to use the setproctitle() in libutil

This uses osreldate.h and other stuff to determine whether it's on a
-current system.  It should still compile cleanly on a -stable branch
system.
This commit is contained in:
peter 1996-01-01 08:54:01 +00:00
parent 3b73747ada
commit 0fdeab8ba7
2 changed files with 13 additions and 4 deletions

View File

@ -24,8 +24,8 @@ SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
mci.c mime.c parseaddr.c queue.c readcf.c recipient.c savemail.c \
srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c usersmtp.c \
util.c version.c
DPADD=
LDADD=
DPADD= ${LIBUTIL}
LDADD= -lutil
MAN1= mailq.1 newaliases.1
MAN5= aliases.5
MAN8= sendmail.8

View File

@ -596,8 +596,17 @@ typedef int pid_t;
# endif
# if defined(__FreeBSD__)
# undef SPT_TYPE
# define SPT_TYPE SPT_REUSEARGV
# define SPT_PADCHAR '\0' /* pad process title with nulls */
# if __FreeBSD__ == 2
# include <osreldate.h> /* and this works */
# if __FreeBSD_version >= 199512 /* 2.2-current right now */
# define SPT_TYPE SPT_BUILTIN
# include <libutil.h>
# endif
# endif
# ifndef SPT_TYPE
# define SPT_TYPE SPT_REUSEARGV
# define SPT_PADCHAR '\0' /* pad process title with nulls */
# endif
# endif
#endif