aboutsummaryrefslogblamecommitdiffstats
path: root/main/gptfdisk/0002-Updated-guid.cc-to-deal-with-minor-change-in-libuuid.patch
blob: db1554e2a08c10b5c955337a4e13e1534e684bb7 (plain) (tree)






































                                                                           
From 6a8416cbd12d55f882bb751993b94f72d338d96f Mon Sep 17 00:00:00 2001
From: Rod Smith <rodsmith@rodsbooks.com>
Date: Sat, 16 Apr 2022 09:32:04 -0400
Subject: [PATCH 2/2] Updated guid.cc to deal with minor change in libuuid

---
 NEWS    | 2 ++
 guid.cc | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 9e153fd73b3b..9ec7e6365c50 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@
   (commit 740, which is pre-release as I type; presumably version 1.19 and
   later once released).
 
+- Updated guid.cc to deal with minor change in libuuid.
+
 1.0.9 (4/14/2022):
 ------------------
 
diff --git a/guid.cc b/guid.cc
index 1e73ab77d854..d3e4fd567dbf 100644
--- a/guid.cc
+++ b/guid.cc
@@ -141,7 +141,7 @@ void GUIDData::Zero(void) {
 void GUIDData::Randomize(void) {
    int i, uuidGenerated = 0;
 
-#ifdef _UUID_UUID_H
+#if defined (_UUID_UUID_H) || defined (_UL_LIBUUID_UUID_H)
    uuid_generate(uuidData);
    ReverseBytes(&uuidData[0], 4);
    ReverseBytes(&uuidData[4], 2);
-- 
2.35.1