]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix the ippserver sample code when threading is disabled or unavailable (Issue #5154)
authorMichael R Sweet <michaelrsweet@gmail.com>
Wed, 1 Nov 2017 15:56:33 +0000 (11:56 -0400)
committerMichael R Sweet <michaelrsweet@gmail.com>
Wed, 1 Nov 2017 15:56:33 +0000 (11:56 -0400)
CHANGES.md
cups/thread.c

index 6a1a2bd79a078cabd80c6f2e0996de0cef38604d..84d5d3e531284b8ce038cf22701f165fb98250f1 100644 (file)
@@ -5,3 +5,5 @@ CHANGES - 2.3b1 - 2017-11-01
 Changes in CUPS v2.3b1
 ----------------------
 
+- Fixed the ippserver sample code when threading is disabled or unavailable
+  (Issue #5154)
\ No newline at end of file
index 65257aa116c0ca536bff5b055e3d49d4e80cac0a..983abec2d54a3f481e15d075d01f594dd5b8998f 100644 (file)
@@ -513,8 +513,7 @@ _cupsThreadCreate(
     _cups_thread_func_t func,          /* I - Entry point */
     void                *arg)          /* I - Entry point context */
 {
-  fputs("DEBUG: CUPS was compiled without threading support, no thread "
-        "created.\n", stderr);
+  fputs("DEBUG: CUPS was compiled without threading support, no thread created.\n", stderr);
 
   (void)func;
   (void)arg;
@@ -523,6 +522,17 @@ _cupsThreadCreate(
 }
 
 
+/*
+ * '_cupsThreadDetach()' - Tell the OS that the thread is running independently.
+ */
+
+void
+_cupsThreadDetach(_cups_thread_t thread)/* I - Thread ID */
+{
+  (void)thread;
+}
+
+
 /*
  * '_cupsThreadWait()' - Wait for a thread to exit.
  */