hewei.it 5 vuotta sitten
vanhempi
commit
4c18e092d4
3 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 1 0
      base/hplatform.h
  2. 1 1
      base/hthread.h
  3. 0 2
      utils/hmain.cpp

+ 1 - 0
base/hplatform.h

@@ -175,6 +175,7 @@
 #include <errno.h>
 #include <time.h>
 #include <math.h>
+#include <signal.h>
 
 #ifndef __cplusplus
 #if HAVE_STDBOOL_H

+ 1 - 1
base/hthread.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

+ 0 - 2
utils/hmain.cpp

@@ -1,7 +1,5 @@
 #include "hmain.h"
 
-#include <signal.h>
-
 #include "hbase.h"
 #include "hlog.h"
 #include "herr.h"