Index: iaxmodem.c --- iaxmodem.c.orig +++ iaxmodem.c @@ -21,16 +21,8 @@ #include #include -#if !defined(__OpenBSD__) && !defined(__FreeBSD__) -# ifndef USE_UNIX98_PTY -# include -# endif /* !USE_UNIX98_PTY */ -# include -#else -#if !defined(__FreeBSD__) -# include -#endif -#endif +#include +#include #include #include @@ -61,11 +53,13 @@ #define SPANDSP_EXPOSE_INTERNAL_STRUCTURES #include -#ifdef STATICLIBS +/* #ifdef STATICLIBS */ #include +/* #else #include #endif + */ #ifndef MODEMVER #define MODEMVER "0.0.0" @@ -169,6 +163,9 @@ int logmode = S_IRUSR | S_IWUSR | S_IRGRP; #include "compat/headers.h" #include "sys/stropts.h" #endif +#ifdef __OpenBSD__ +#include "compat/strings.c" +#endif #ifdef __FreeBSD__ #include "compat/strndup-freebsd.c" @@ -697,7 +694,8 @@ iaxmodem(const char *config, int nondaemon) int fd; char logfile[256]; - printlog(LOG_ERROR, "Modem started\n"); + printlog(LOG_ERROR, "Modem %s started\n", config); + setproctitle("uucp [%s]",config); pwent = getpwnam("uucp");