You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2022/05/05 02:03:27 UTC

svn commit: r1900571 - /httpd/httpd/trunk/support/ab.c

Author: covener
Date: Thu May  5 02:03:27 2022
New Revision: 1900571

URL: http://svn.apache.org/viewvc?rev=1900571&view=rev
Log:
r1900362 followup: clang -Wexpansion-to-defined

ab.c:2056:5: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if USE_SIGMASK


Modified:
    httpd/httpd/trunk/support/ab.c

Modified: httpd/httpd/trunk/support/ab.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/ab.c?rev=1900571&r1=1900570&r2=1900571&view=diff
==============================================================================
--- httpd/httpd/trunk/support/ab.c (original)
+++ httpd/httpd/trunk/support/ab.c Thu May  5 02:03:27 2022
@@ -2028,9 +2028,12 @@ static void join_worker(struct worker *w
 static void workers_may_exit(int sig);
 #endif /* SIGINT */
 
-#define USE_SIGMASK (APR_HAS_THREADS \
-                     && (APR_HAVE_PTHREAD_H \
-                         || defined(SIGPROCMASK_SETS_THREAD_MASK)))
+#if (APR_HAS_THREADS \
+     && (APR_HAVE_PTHREAD_H || defined(SIGPROCMASK_SETS_THREAD_MASK)))
+#define USE_SIGMASK 1
+#else
+#define USE_SIGMASK 0
+#endif
 
 static void init_signals(void)
 {