[sr-dev] git:sr_3.0: ctl: missing ifdef (minor)

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Oct 19 18:46:01 CEST 2009


Module: sip-router
Branch: sr_3.0
Commit: 803fd9a8ae07dca6672422315fb4e5ba76131a27
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=803fd9a8ae07dca6672422315fb4e5ba76131a27

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Mon Oct 19 18:01:51 2009 +0200

ctl: missing ifdef (minor)

- missing ifdef USE_FIFO prevented compilation without fifo
  support.

---

 modules/ctl/ctl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/ctl/ctl.c b/modules/ctl/ctl.c
index 5faec97..8e50e51 100644
--- a/modules/ctl/ctl.c
+++ b/modules/ctl/ctl.c
@@ -250,11 +250,13 @@ static int mod_init(void)
 						payload_proto_name(l->data_proto), l->name,
 						l->port?l->port:DEFAULT_CTL_PORT);
 				break;
+#ifdef USE_FIFO
 			case FIFO_SOCK:
 				DBG("        [%s:fifo]         %s\n",
 						payload_proto_name(l->data_proto), l->name);
 				fd_no++; /* fifos use 2 fds */
 				break;
+#endif
 			default:
 				LOG(L_CRIT, "BUG: ctrl: listen protocol %d not supported\n",
 						l->proto);




More information about the sr-dev mailing list