void-packages/srcpkgs/gptfdisk/patches/fix-libuuid-linking.patch

15 lines
459 B
Diff

https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1853985.html
https://sourceforge.net/p/gptfdisk/code/ci/6a8416cbd12d55f882bb751993b94f72d338d96f/
--- a/guid.cc
+++ b/guid.cc
@@ -141,7 +141,7 @@
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);