diff --git a/uuid.c b/uuid.c
index bdda7a6..c84031e 100644
--- a/uuid.c
+++ b/uuid.c
@@ -23,6 +23,7 @@
* You should have received a copy of the GNU General Public License
* along with MiniDLNA. If not, see .
*/
+#include "config.h"
#include
#include
#include
@@ -38,15 +39,10 @@
#include
#endif
+#include "uuid.h"
#include "getifaddr.h"
#include "log.h"
-#define ETH_ALEN 6
-#ifndef NSEC_PER_SEC
-#define NSEC_PER_SEC 1000000000L
-#endif
-#define NSEC_PER_MSEC 1000000L
-
static uint32_t clock_seq;
static const uint32_t clock_seq_max = 0x3fff; /* 14 bits */
static int clock_seq_initialized;
diff --git a/uuid.h b/uuid.h
index 51242f4..7eb8e7f 100644
--- a/uuid.h
+++ b/uuid.h
@@ -24,6 +24,14 @@
#ifndef __UUID_H__
#define __UUID_H__
+#define ETH_ALEN 6
+#ifndef NSEC_PER_SEC
+#define NSEC_PER_SEC 1000000000L
+#endif
+#ifndef NSEC_PER_MSEC
+#define NSEC_PER_MSEC 1000000L
+#endif
+
int
get_uuid_string(char *buf);