sources: Fix ifdefs

We don't want to compare the boolean value of these macros, but the
existence of their definition. None of our Makefile definitions define
an actual value for them, but rely on their presence.

Change-Id: I21688d70acfbfef4d8ca3284fd6db8dbf64b7e6f
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/network_manager_main.cpp b/network_manager_main.cpp
index 734a48a..38fe673 100644
--- a/network_manager_main.cpp
+++ b/network_manager_main.cpp
@@ -48,7 +48,7 @@
 std::unique_ptr<Timer> refreshObjectTimer = nullptr;
 std::unique_ptr<Timer> restartTimer = nullptr;
 
-#if SYNC_MAC_FROM_INVENTORY
+#ifdef SYNC_MAC_FROM_INVENTORY
 std::unique_ptr<sdbusplus::bus::match::match> EthInterfaceMatch = nullptr;
 std::vector<std::string> first_boot_status;
 
@@ -330,7 +330,7 @@
     // RTNETLINK event handler
     phosphor::network::rtnetlink::Server svr(eventPtr, smartSock);
 
-#if SYNC_MAC_FROM_INVENTORY
+#ifdef SYNC_MAC_FROM_INVENTORY
     std::ifstream in(configFile);
     nlohmann::json configJson;
     in >> configJson;