diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2017-11-28 17:23:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 17:23:48 +0100 |
commit | bf71b120f10edbefb91fa1c12c9ab1e264e56289 (patch) | |
tree | a16fa88c08e2d2bc842607e924277c90072fe076 | |
parent | 75fa7879e6b4408247db6b7eba3def64c00d4f9a (diff) | |
parent | 62689ef0cf3c805b100ff5260485368e1c9b683c (diff) | |
download | redis-bf71b120f10edbefb91fa1c12c9ab1e264e56289.tar.gz |
Merge pull request #4451 from devnexen/minor_build_fixes
Fix undefined behavior constant defined.
-rw-r--r-- | src/lzfP.h | 6 | ||||
-rw-r--r-- | src/setproctitle.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/lzfP.h b/src/lzfP.h index c6d2e096c..93c27b42d 100644 --- a/src/lzfP.h +++ b/src/lzfP.h @@ -79,7 +79,11 @@ * Unconditionally aligning does not cost very much, so do it if unsure */ #ifndef STRICT_ALIGN -# define STRICT_ALIGN !(defined(__i386) || defined (__amd64)) +# if !(defined(__i386) || defined (__amd64)) +# define STRICT_ALIGN 1 +# else +# define STRICT_ALIGN 0 +# endif #endif /* diff --git a/src/setproctitle.c b/src/setproctitle.c index f44253e16..6563242de 100644 --- a/src/setproctitle.c +++ b/src/setproctitle.c @@ -39,7 +39,11 @@ #include <errno.h> /* errno program_invocation_name program_invocation_short_name */ #if !defined(HAVE_SETPROCTITLE) -#define HAVE_SETPROCTITLE (defined __NetBSD__ || defined __FreeBSD__ || defined __OpenBSD__) +#if (defined __NetBSD__ || defined __FreeBSD__ || defined __OpenBSD__) +#define HAVE_SETPROCTITLE 1 +#else +#define HAVE_SETPROCTITLE 0 +#endif #endif |