disable various code if building for bare-iron embedded
We don't have file-based I/O nor ethernet devices with mac addresses
when building for OsmocomBB.
Change-Id: I01a9e6d8dbe885dbeac2769b84931a4d44f7a3a5
diff --git a/src/macaddr.c b/src/macaddr.c
index f83e054..ceb1e0a 100644
--- a/src/macaddr.c
+++ b/src/macaddr.c
@@ -26,6 +26,8 @@
/*! \file loggingrb.c */
+#include "config.h"
+
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
@@ -103,6 +105,8 @@
#else
+#if (!EMBEDDED)
+
#include <sys/ioctl.h>
#include <net/if.h>
#include <netinet/in.h>
@@ -134,6 +138,8 @@
return 0;
}
+#endif /* !EMBEDDED */
+
#endif
/*! @} */