瀏覽代碼

Avoid clash of symbol clock_gettime

bel2125 8 年之前
父節點
當前提交
2b6392fc58
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/civetweb.c

+ 1 - 0
src/civetweb.c

@@ -396,6 +396,7 @@ struct timespec {
 #endif
 
 #ifdef MUST_IMPLEMENT_CLOCK_GETTIME
+#define clock_gettime mg_clock_gettime
 static int
 clock_gettime(clockid_t clk_id, struct timespec *tp)
 {