Fix lwm2m header inclusions
#include "lwm2m-tlv-writer.h"
#include "lib/list.h"
#include "sys/cc.h"
-#include "net/ipv6/uip-ds6.h"
-#include "net/routing/routing.h"
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
+#ifndef LWM2M_ENGINE_CLIENT_ENDPOINT_NAME
+#include "net/ipv6/uip-ds6.h"
+#endif /* LWM2M_ENGINE_CLIENT_ENDPOINT_NAME */
+
/* Log configuration */
#include "coap-log.h"
#define LOG_MODULE "lwm2m-engine"
