forked from utmapp/UTM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgettext-0.21.patch
85 lines (76 loc) · 2.79 KB
/
gettext-0.21.patch
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
diff --git a/libtextstyle/lib/get_ppid_of.c b/libtextstyle/lib/get_ppid_of.c
index 5579cd9..8323618 100644
--- a/libtextstyle/lib/get_ppid_of.c
+++ b/libtextstyle/lib/get_ppid_of.c
@@ -32,10 +32,6 @@
# include <sys/sysctl.h> /* sysctl, struct kinfo_proc */
#endif
-#if defined __APPLE__ && defined __MACH__ /* Mac OS X */
-# include <libproc.h>
-#endif
-
#if defined _AIX /* AIX */
# include <procinfo.h>
#endif
@@ -225,27 +221,6 @@ get_ppid_of (pid_t pid)
#endif
-#if defined __APPLE__ && defined __MACH__ /* Mac OS X */
-
-# if defined PROC_PIDT_SHORTBSDINFO
- struct proc_bsdshortinfo info;
-
- if (proc_pidinfo (pid, PROC_PIDT_SHORTBSDINFO, 0, &info, sizeof (info))
- == sizeof (info))
- return info.pbsi_ppid;
-# else
- /* Note: The second part of 'struct proc_bsdinfo' differs in size between
- 32-bit and 64-bit environments, and the kernel of Mac OS X 10.5 knows
- only about the 32-bit 'struct proc_bsdinfo'. Fortunately all the info
- we need is in the first part, which is the same in 32-bit and 64-bit. */
- struct proc_bsdinfo info;
-
- if (proc_pidinfo (pid, PROC_PIDTBSDINFO, 0, &info, 128) == 128)
- return info.pbi_ppid;
-# endif
-
-#endif
-
#if defined _AIX /* AIX */
/* Reference: https://www.ibm.com/support/knowledgecenter/en/ssw_aix_61/com.ibm.aix.basetrf1/getprocs.htm
diff --git a/libtextstyle/lib/get_progname_of.c b/libtextstyle/lib/get_progname_of.c
index 4b08489..d86dfd4 100644
--- a/libtextstyle/lib/get_progname_of.c
+++ b/libtextstyle/lib/get_progname_of.c
@@ -40,10 +40,6 @@
# include <sys/sysctl.h> /* sysctl, struct kinfo_proc */
#endif
-#if defined __APPLE__ && defined __MACH__ /* Mac OS X */
-# include <libproc.h>
-#endif
-
#if defined _AIX /* AIX */
# include <procinfo.h>
#endif
@@ -265,26 +261,6 @@ get_progname_of (pid_t pid)
#endif
-#if defined __APPLE__ && defined __MACH__ /* Mac OS X */
-
-# if defined PROC_PIDT_SHORTBSDINFO
- struct proc_bsdshortinfo info;
-
- if (proc_pidinfo (pid, PROC_PIDT_SHORTBSDINFO, 0, &info, sizeof (info))
- == sizeof (info))
- return strdup (info.pbsi_comm);
-# else
- /* Note: The second part of 'struct proc_bsdinfo' differs in size between
- 32-bit and 64-bit environments, and the kernel of Mac OS X 10.5 knows
- only about the 32-bit 'struct proc_bsdinfo'. Fortunately all the info
- we need is in the first part, which is the same in 32-bit and 64-bit. */
- struct proc_bsdinfo info;
-
- if (proc_pidinfo (pid, PROC_PIDTBSDINFO, 0, &info, 128) == 128)
- return strdup (info.pbi_comm);
-# endif
-
-#endif
#if defined _AIX /* AIX */