diff options
author | Eric Covener <covener@apache.org> | 2022-05-05 04:03:27 +0200 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2022-05-05 04:03:27 +0200 |
commit | e7dfa99412c862d89a9f8f0146653387f12ff74c (patch) | |
tree | 701955e154caabbabc22f8c29df389804cb65d0a /support | |
parent | Length computed by count_string() are accumulated in an apr_size_t, so be mor... (diff) | |
download | apache2-e7dfa99412c862d89a9f8f0146653387f12ff74c.tar.xz apache2-e7dfa99412c862d89a9f8f0146653387f12ff74c.zip |
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
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900571 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r-- | support/ab.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/support/ab.c b/support/ab.c index 7906b84c93..020faa7b8d 100644 --- a/support/ab.c +++ b/support/ab.c @@ -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) { |