]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
r1900362 followup: clang -Wexpansion-to-defined
authorEric Covener <covener@apache.org>
Thu, 5 May 2022 02:03:27 +0000 (02:03 +0000)
committerEric Covener <covener@apache.org>
Thu, 5 May 2022 02:03:27 +0000 (02:03 +0000)
ab.c:2056:5: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if USE_SIGMASK

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900571 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 7906b84c934c71ec378e732930e54c6542ec2f95..020faa7b8d4c2810707d4d1f73f1c714ad6afb70 100644 (file)
@@ -2028,9 +2028,12 @@ static void join_worker(struct worker *worker);
 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)
 {