Date: Mon, 3 Jul 2017 19:49:26 +0000 (UTC) From: Sean Bruno <sbruno@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r320616 - head/contrib/libpcap/bpf/net Message-ID: <201707031949.v63JnQ5c072985@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sbruno Date: Mon Jul 3 19:49:25 2017 New Revision: 320616 URL: https://svnweb.freebsd.org/changeset/base/320616 Log: 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 Modified: head/contrib/libpcap/bpf/net/bpf_filter.c Modified: head/contrib/libpcap/bpf/net/bpf_filter.c ============================================================================== --- head/contrib/libpcap/bpf/net/bpf_filter.c Mon Jul 3 19:46:12 2017 (r320615) +++ head/contrib/libpcap/bpf/net/bpf_filter.c Mon Jul 3 19:49:25 2017 (r320616) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707031949.v63JnQ5c072985>