diff options
author | Sean Bruno <sbruno@FreeBSD.org> | 2017-07-03 19:49:25 +0000 |
---|---|---|
committer | Sean Bruno <sbruno@FreeBSD.org> | 2017-07-03 19:49:25 +0000 |
commit | 4b85e937ef4f0dd52aa3b31c50322f21440c07e5 (patch) | |
tree | 04071bba12e78fd1b11b922301db49938477b2f5 /contrib/libpcap | |
parent | ac952dd274e8895c460c6e937b9f4b095b3f60d5 (diff) | |
download | src-4b85e937ef4f0dd52aa3b31c50322f21440c07e5.tar.gz src-4b85e937ef4f0dd52aa3b31c50322f21440c07e5.zip |
Clear clang warning:
warning: macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
Submitted by: Aaron Prieger <aprieger@llnw.com>
Reviewed by: dim
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D11166
Notes
Notes:
svn path=/head/; revision=320616
Diffstat (limited to 'contrib/libpcap')
-rw-r--r-- | contrib/libpcap/bpf/net/bpf_filter.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/libpcap/bpf/net/bpf_filter.c b/contrib/libpcap/bpf/net/bpf_filter.c index 01a1b64e7197..0a80cdc52883 100644 --- a/contrib/libpcap/bpf/net/bpf_filter.c +++ b/contrib/libpcap/bpf/net/bpf_filter.c @@ -61,7 +61,12 @@ #include <sys/types.h> #include <sys/time.h> -#define SOLARIS (defined(sun) && (defined(__SVR4) || defined(__svr4__))) +#if (defined(sun) && (defined(__SVR4) || defined(__svr4__))) +#define SOLARIS 1 +#else +#define SOLARIS 0 +#endif + #if defined(__hpux) || SOLARIS # include <sys/sysmacros.h> # include <sys/stream.h> |