blob: f358081092e7ed1a9b97fcc0632475147c91fdd7 [file] [log] [blame]
Patrick Williams2390b1b2022-11-03 13:47:49 -05001From c640d9011a8330ebaad501784fb0ee1ce5e7a5ef Mon Sep 17 00:00:00 2001
2From: Rod Smith <rodsmith@rodsbooks.com>
3Date: Sat, 16 Apr 2022 09:32:04 -0400
4Subject: [PATCH] Updated guid.cc to deal with minor change in libuuid
5
6Upstream-Status: Backport [https://sourceforge.net/p/gptfdisk/code/ci/6a8416cbd12d55f882bb751993b94f72d338d96f/]
7Signed-off-by: Peter Bergin <peter@berginkonsult.se>
8---
9 guid.cc | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/guid.cc b/guid.cc
13index 1e73ab7..d3e4fd5 100644
14--- a/guid.cc
15+++ b/guid.cc
16@@ -141,7 +141,7 @@ void GUIDData::Zero(void) {
17 void GUIDData::Randomize(void) {
18 int i, uuidGenerated = 0;
19
20-#ifdef _UUID_UUID_H
21+#if defined (_UUID_UUID_H) || defined (_UL_LIBUUID_UUID_H)
22 uuid_generate(uuidData);
23 ReverseBytes(&uuidData[0], 4);
24 ReverseBytes(&uuidData[4], 2);
25--
262.34.1
27