Fix build error for MBTK_DUMP_SUPPORT
Change-Id: I72d8af70b54ad69aa32e28ad04472fc701da5a58
diff --git a/mbtk/mbtk_logd/main.c b/mbtk/mbtk_logd/main.c
index a4fb7f3..ee3d49e 100755
--- a/mbtk/mbtk_logd/main.c
+++ b/mbtk/mbtk_logd/main.c
@@ -12,6 +12,7 @@
#include <sys/stat.h>
#include <string.h>
#include <pthread.h>
+#include <signal.h>
#include "json-c/json.h"
#include "json-c/printbuf.h"
@@ -20,7 +21,9 @@
#include "mbtk_type.h"
//#define DEBUG 1
-#include <signal.h>
+#ifdef MBTK_DUMP_SUPPORT
+void mbtk_debug_open(const char *log_file, bool thread_support);
+#endif
#ifdef DEBUG
#define mbtk_log(...) printf(__VA_ARGS__)
@@ -43,22 +46,22 @@
printf("Received SIGTERM signal, fflush buffer");
if(fcntl(tmp_syslog_fd, F_GETFL) != -1 && strlen(syslog_buff) > 0)
{
- if(write(tmp_syslog_fd, syslog_buff, strlen(syslog_buff)) < 0)
+ if(write(tmp_syslog_fd, syslog_buff, strlen(syslog_buff)) < 0)
{
perror("write error");
}
memset(syslog_buff,0,MAX_BUFFER_SIZE);
}
-
+
if(fcntl(tmp_rd_fd, F_GETFL) != -1 && strlen(radiolog_buff) > 0)
{
- if(write(tmp_rd_fd, radiolog_buff, strlen(radiolog_buff)) < 0)
+ if(write(tmp_rd_fd, radiolog_buff, strlen(radiolog_buff)) < 0)
{
perror("write error");
}
memset(radiolog_buff,0,MAX_BUFFER_SIZE);
}
-
+
}
static void handler_free(log_config_entry* listdata)