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
This commit is contained in:
Sean Bruno 2017-07-03 19:49:25 +00:00
parent ac952dd274
commit 4b85e937ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320616

View file

@ -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>