procd: fix build when DEBUG is set
authorZefir Kurtisi <zefir.kurtisi@neratec.com>
Thu, 13 Oct 2016 15:40:38 +0000 (17:40 +0200)
committerJohn Crispin <john@phrozen.org>
Fri, 14 Oct 2016 22:52:39 +0000 (00:52 +0200)
commitd1e14deae2ea28935280c3a2a6609549761619bc
treeb38d7ad8796d2ca8e1ee88ceac5dde95abaa7bb2
parent98dc89149231c5268de38fc98590f9267aa9d05b
procd: fix build when DEBUG is set

There is a collision between the DEBUG set in the CMake file as
flag and the macro defined in log.h, resulting in build error:

In file included from ./procd/initd/init.h:19:0,
                 from ./procd/initd/init.c:33:
./procd/initd/../log.h:20:0: error: "DEBUG" redefined [-Werror]
 #define DEBUG(level, fmt, ...) do { \
 ^
<command-line>:0:0: note: this is the location of the previous definition
cc1: all warnings being treated as errors

This patch fixes the issue by renaming the build flag to
UDEV_DEBUG (since it is only used in udevtrigger).

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
CMakeLists.txt
plug/udevtrigger.c