瀏覽代碼

partial fix to support Linux Standard Base (LSB)

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

+ 10 - 0
src/civetweb.c

@@ -59,6 +59,9 @@
 #if defined(__linux__) && !defined(_XOPEN_SOURCE)
 #define _XOPEN_SOURCE 600 /* For flockfile() on Linux */
 #endif
+#if defined(__LSB_VERSION__)
+#define NEED_TIMEGM
+#endif
 #if !defined(_LARGEFILE_SOURCE)
 #define _LARGEFILE_SOURCE /* For fseeko(), ftello() */
 #endif
@@ -2969,6 +2972,12 @@ event_destroy(void *eventhdl)
 #endif
 
 
+#if defined(__LSB_VERSION__)
+void
+mg_set_thread_name(const char *threadName)
+{
+}
+#else /* !defined(__LSB__) */
 static void
 mg_set_thread_name(const char *name)
 {
@@ -3010,6 +3019,7 @@ mg_set_thread_name(const char *name)
 	(void)prctl(PR_SET_NAME, threadName, 0, 0, 0);
 #endif
 }
+#endif
 #else /* !defined(NO_THREAD_NAME) */
 void
 mg_set_thread_name(const char *threadName)