pkgs/fakeroot/0002-do-not-redefine-id_t.patch

30 lines
795 B
Diff

From b32a0c3fc5ce209751e5a139d9c39628a85db48a Mon Sep 17 00:00:00 2001
From: Daryl Ronningen <relms@relms.dev>
Date: Mon, 11 Dec 2023 05:01:10 -0800
Subject: [PATCH 2/2] do not redefine id_t
---
libfakeroot.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/libfakeroot.c b/libfakeroot.c
index 32dade8..52607a7 100644
--- a/libfakeroot.c
+++ b/libfakeroot.c
@@ -141,13 +141,6 @@
#define INT_SEND_STAT(a,b) SEND_STAT(a,b,_STAT_VER)
#define INT_SEND_GET_XATTR(a,b) SEND_GET_XATTR(a,b,_STAT_VER)
#define INT_SEND_GET_STAT(a,b) SEND_GET_STAT(a,b)
-
-/* 10.10 uses id_t in getpriority/setpriority calls, so pretend
- id_t is used everywhere, just happens to be int on some OSes */
-#ifndef _ID_T
-#define _ID_T
-typedef int id_t;
-#endif
#endif
#include <sys/types.h>
--
2.43.0