瀏覽代碼

Merge pull request #863 from gaborcsardi/fix/compilation-solaris

Need the timegm stub on Solaris
bel2125 5 年之前
父節點
當前提交
87563818d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -59,7 +59,7 @@
 #if defined(__linux__) && !defined(_XOPEN_SOURCE)
 #define _XOPEN_SOURCE 600 /* For flockfile() on Linux */
 #endif
-#if defined(__LSB_VERSION__)
+#if defined(__LSB_VERSION__) || defined(__sun)
 #define NEED_TIMEGM
 #define NO_THREAD_NAME
 #endif