瀏覽代碼

ctl: missing ifdef (minor)

- missing ifdef USE_FIFO prevented compilation without fifo
  support.
Andrei Pelinescu-Onciul 16 年之前
父節點
當前提交
803fd9a8ae
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      modules/ctl/ctl.c

+ 2 - 0
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);