@@ -175,6 +175,7 @@
#include <errno.h>
#include <time.h>
#include <math.h>
+#include <signal.h>
#ifndef __cplusplus
#if HAVE_STDBOOL_H
@@ -16,7 +16,7 @@
#define hv_gettid (long)gettid
#elif defined(OS_LINUX)
#include <sys/syscall.h>
-#define hv_gettid (long)syscall(SYS_gettid)
+#define hv_gettid() (long)syscall(SYS_gettid)
#elif HAVE_PTHREAD_H
#define hv_gettid (long)pthread_self
#else
@@ -1,7 +1,5 @@
#include "hmain.h"
-#include <signal.h>
-
#include "hbase.h"
#include "hlog.h"
#include "herr.h"