* Include config.h, and move a couple definitions to the header file.
This commit is contained in:
parent
62da09d9ce
commit
cbf270b601
8
uuid.c
8
uuid.c
@ -23,6 +23,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with MiniDLNA. If not, see <http://www.gnu.org/licenses/>.
|
* along with MiniDLNA. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
#include "config.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@ -38,15 +39,10 @@
|
|||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "uuid.h"
|
||||||
#include "getifaddr.h"
|
#include "getifaddr.h"
|
||||||
#include "log.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 uint32_t clock_seq;
|
||||||
static const uint32_t clock_seq_max = 0x3fff; /* 14 bits */
|
static const uint32_t clock_seq_max = 0x3fff; /* 14 bits */
|
||||||
static int clock_seq_initialized;
|
static int clock_seq_initialized;
|
||||||
|
8
uuid.h
8
uuid.h
@ -24,6 +24,14 @@
|
|||||||
#ifndef __UUID_H__
|
#ifndef __UUID_H__
|
||||||
#define __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
|
int
|
||||||
get_uuid_string(char *buf);
|
get_uuid_string(char *buf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user