openbsd-ports/telephony/iaxmodem/patches/patch-iaxmodem_c
todd 1d9e28be19 iaxmodem 1.1.0
IAXmodem is a software modem written in C that uses an IAX channel
(commonly provided by an Asterisk PBX system) instead of a traditional
phone line and uses a DSP library instead of DSP hardware chipsets.

IAXmodem was originally conceived to function as a fax modem usable
with HylaFAX, and it does that well. However IAXmodem also has been
known to function with mgetty+sendfax and efax.

.. much cleanup from my earlier verisions, thanks brad@
2008-04-21 03:49:22 +00:00

39 lines
878 B
Plaintext

$OpenBSD: patch-iaxmodem_c,v 1.1.1.1 2008/04/21 03:49:22 todd Exp $
--- iaxmodem.c.orig Thu Feb 7 19:57:47 2008
+++ iaxmodem.c Sat Mar 29 03:17:59 2008
@@ -60,11 +60,13 @@
#endif
#include <spandsp.h>
-#ifdef STATICLIBS
+/* #ifdef STATICLIBS */
#include <iax-client.h>
+/*
#else
#include <iax/iax-client.h>
#endif
+ */
#ifndef MODEMVER
#define MODEMVER "0.0.0"
@@ -163,6 +165,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
void
printlog(FILE *fp, char *fmt, ...)
@@ -637,7 +642,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");