From cbf270b601b3964afaf0a67c4b9cf4c472404168 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 10 Nov 2011 06:53:53 +0000 Subject: [PATCH] * Include config.h, and move a couple definitions to the header file. --- uuid.c | 8 ++------ uuid.h | 8 ++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) 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);