Skip to content
Snippets Groups Projects
Commit 1b155312 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

contrib: fix mkdir permissions on Windows for gnutls

This effectively restores a previously removed patch, thought to
be unnecessary (removed in cbba52ef when bumping gnutls). The issue
is fixed in a later version of gnutls, which opendht is not yet
ready to use.

Change-Id: I6d07028f7c5f95803776d1413c7e6a8411902fef
parent 9edaf4df
Branches
No related tags found
No related merge requests found
From bad7151d1ae625a87e0ed05a2a7f5af25417bab2 Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Wed, 12 Mar 2025 14:47:10 -0400
Subject: [PATCH] fix mkdir permissions on Windows
---
SMP/unistd.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/SMP/unistd.h b/SMP/unistd.h
index b54d4be1..eb712c95 100644
--- a/SMP/unistd.h
+++ b/SMP/unistd.h
@@ -27,6 +27,8 @@
# include_next <unistd.h>
#else
+#define mkdir(path, mode) mkdir(path)
+
#include <stdlib.h>
#include <process.h>
#include <direct.h>
--
2.34.1
......@@ -17,6 +17,7 @@
"git init",
"git remote add origin https://github.com/ShiftMediaProject/gnutls.git || true",
"git fetch origin --depth=1 --tags && git reset --hard 3.8.3",
"git apply ../../src/gnutls/0001-fix-mkdir-permissions-on-Windows.patch",
"git submodule update --init --recursive --depth=1 gnulib devel/libtasn1"
]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment