summaryrefslogtreecommitdiff
path: root/sysutils/xentools411/patches/patch-tools_libxl_libxl_uuid.c
blob: 3062a46692339f50e73857b343682da44b1a581b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-tools_libxl_libxl_uuid.c,v 1.1 2018/07/24 13:40:11 bouyer Exp $

--- tools/libxl/libxl_uuid.c.orig	2016-12-05 13:03:27.000000000 +0100
+++ tools/libxl/libxl_uuid.c	2017-03-24 18:15:58.000000000 +0100
@@ -82,7 +82,7 @@
     uuid_enc_be(uuid->uuid, &nat_uuid);
 }
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 int libxl_uuid_from_string(libxl_uuid *uuid, const char *in)
 {
     uint32_t status;
@@ -120,7 +120,7 @@
     memset(&uuid->uuid, 0, sizeof(uuid->uuid));
 }
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 int libxl_uuid_compare(const libxl_uuid *uuid1, const libxl_uuid *uuid2)
 {
     uuid_t nat_uuid1, nat_uuid2;