Kaynağa Gözat

Avoid clash of symbol clock_gettime

bel2125 8 yıl önce
ebeveyn
işleme
2b6392fc58
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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)
 {