unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 3fb238bcdcb48e20f10bbe0be6b4ca6bc8e38022 2169 bytes (raw)
name: gnu/packages/patches/inetutils-hurd64.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
 
Upstream-status: Not presented upstream.

From 0804e655a7abfd22dc3a053f03fab8f811405f84 Mon Sep 17 00:00:00 2001
From: Janneke Nieuwenhuizen <janneke@gnu.org>
Date: Fri, 8 Nov 2024 11:07:56 +0100
Subject: [PATCH] ifconfig hurd: Build fix for the 64bit HUrd.
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8

* ifconfig/system/hurd.c (check_driving): Use mach_msg_type_number_t
instead of size_t for file_get_fs_options.
---
 ifconfig/system/hurd.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/ifconfig/system/hurd.c b/ifconfig/system/hurd.c
index 70b2ed27..86fe6375 100644
--- a/ifconfig/system/hurd.c
+++ b/ifconfig/system/hurd.c
@@ -47,7 +47,7 @@ check_driving (const char *name)
   error_t err;
 
   char *argz = 0, *new_argz = 0;
-  size_t argz_len = 0;
+  mach_msg_type_number_t argz_len = 0;
   char *entry = 0;
   const char *socket = _SERVERS_SOCKET "/2";
 
@@ -106,7 +106,9 @@ check_driving (const char *name)
   new_argz = malloc (argz_len);
   memcpy (new_argz, argz, argz_len);
 
-  err = argz_insert (&new_argz, &argz_len, new_argz, name);
+  size_t new_argz_len = 0;
+
+  err = argz_insert (&new_argz, &new_argz_len, new_argz, name);
   if (err)
     {
       error (0, err, "Could not prepend name %s to '%s' for %s", name,
@@ -114,7 +116,7 @@ check_driving (const char *name)
       goto out;
     }
 
-  err = argz_insert (&new_argz, &argz_len, new_argz, "-i");
+  err = argz_insert (&new_argz, &new_argz_len, new_argz, "-i");
   if (err)
     {
       argz_stringify (new_argz, argz_len, ' ');
@@ -122,10 +124,10 @@ check_driving (const char *name)
       goto out;
     }
 
-  err = fsys_set_options (fsys, new_argz, argz_len, 1);
+  err = fsys_set_options (fsys, new_argz, new_argz_len, 1);
   if (err)
     {
-      argz_stringify (new_argz, argz_len, ' ');
+      argz_stringify (new_argz, new_argz_len, ' ');
       error (0, err, "Could not make pfinet %s drive %s with '%s'", socket,
 	     name, new_argz);
       goto out;
-- 
Janneke Nieuwenhuizen <janneke@gnu.org>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com


debug log:

solving 3fb238bcdc ...
found 3fb238bcdc in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).