From: Michael R Sweet Date: Wed, 1 Nov 2017 15:56:33 +0000 (-0400) Subject: Fix the ippserver sample code when threading is disabled or unavailable (Issue #5154) X-Git-Tag: v2.3b1~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d8e89a654257c6822696fc9bb12159d33721f2d;p=thirdparty%2Fcups.git Fix the ippserver sample code when threading is disabled or unavailable (Issue #5154) --- diff --git a/CHANGES.md b/CHANGES.md index 6a1a2bd79a..84d5d3e531 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/cups/thread.c b/cups/thread.c index 65257aa116..983abec2d5 100644 --- a/cups/thread.c +++ b/cups/thread.c @@ -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. */