Browse Source

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

Need the timegm stub on Solaris
bel2125 5 years ago
parent
commit
87563818d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

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