all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob dd21c82f5c1d702b83c3b81ae69a199c924e6815 516 bytes (raw)
name: gnu/packages/patches/procps-non-linux.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
 
--- a/lib/test_process.c
+++ b/lib/test_process.c
@@ -21,7 +21,9 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <signal.h>
+#ifdef __linux__
 #include <sys/prctl.h>
+#endif
 #include "c.h"
 
 #define DEFAULT_SLEEPTIME 300
@@ -78,8 +80,10 @@
     sigaction(SIGUSR1, &signal_action, NULL);
     sigaction(SIGUSR2, &signal_action, NULL);
 
+#ifdef __linux__
     /* set process name */
     prctl(PR_SET_NAME, MY_NAME, NULL, NULL, NULL);
+#endif
 
     while (sleep_time > 0) {
 	sleep_time = sleep(sleep_time);

debug log:

solving dd21c82 ...
found dd21c82 in https://yhetil.org/guix/56b93557-6c80-f1d6-5978-cad718674a14@gmail.com/

applying [1/1] https://yhetil.org/guix/56b93557-6c80-f1d6-5978-cad718674a14@gmail.com/
diff --git a/gnu/packages/patches/procps-non-linux.patch b/gnu/packages/patches/procps-non-linux.patch
new file mode 100644
index 0000000..dd21c82

1:17: trailing whitespace.
 
1:22: trailing whitespace.
 
1:27: trailing whitespace.
 
1:29: space before tab in indent.
 	sleep_time = sleep(sleep_time);
Checking patch gnu/packages/patches/procps-non-linux.patch...
Applied patch gnu/packages/patches/procps-non-linux.patch cleanly.
warning: 4 lines add whitespace errors.

index at:
100644 dd21c82f5c1d702b83c3b81ae69a199c924e6815	gnu/packages/patches/procps-non-linux.patch

(*) 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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.