mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
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:
parent
5f30a3e6fb
commit
38df03f3e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13144
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user