From f4539411dd6063d1c66b64451b75d288cbe1e79a Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Thu, 14 Jan 2021 17:25:32 +0800 Subject: [PATCH] compile errors --- src/os/inc/osFile.h | 2 ++ src/sync/src/syncArbitrator.c | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/os/inc/osFile.h b/src/os/inc/osFile.h index 91ac5c9958..19cc78472c 100644 --- a/src/os/inc/osFile.h +++ b/src/os/inc/osFile.h @@ -20,6 +20,8 @@ extern "C" { #endif +#include "osSocket.h" + int64_t taosReadImp(int32_t fd, void *buf, int64_t count); int64_t taosWriteImp(int32_t fd, void *buf, int64_t count); int64_t taosLSeekImp(int32_t fd, int64_t offset, int32_t whence); diff --git a/src/sync/src/syncArbitrator.c b/src/sync/src/syncArbitrator.c index 187e7a3b46..8c0d02bedc 100644 --- a/src/sync/src/syncArbitrator.c +++ b/src/sync/src/syncArbitrator.c @@ -183,11 +183,8 @@ static void arbSignalHandler(int32_t signum) { sigaction(SIGHUP, &act, NULL); sigaction(SIGINT, &act, NULL); -#ifndef WINDOWS - sInfo("shut down signal is %d, sender PID:%d", signum, sigInfo->si_pid); -#else sInfo("shut down signal is %d", signum); -#endif + // inform main thread to exit tsem_post(&tsArbSem); } -- GitLab