소스 검색

Merge pull request #151 from nigels-com/clock_gettime_prototype

Resolve Mac OS X 10.9 compilation warning
bel2125 10 년 전
부모
커밋
68133747a7
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/civetweb.c

+ 2 - 0
src/civetweb.c

@@ -127,6 +127,8 @@ mg_static_assert(sizeof(void *) >= sizeof(int), "data type size check");
 #include <assert.h>
 
 /* clock_gettime is not implemented on OSX */
+int clock_gettime(int clk_id, struct timespec *t);
+
 int clock_gettime(int clk_id, struct timespec *t)
 {
 	if (clk_id == CLOCK_REALTIME) {