void-packages/srcpkgs/cpulimit/patches/ifdef.patch

23 lines
566 B
Diff

--- a/src/cpulimit.c 2024-03-13 15:50:04.331088508 +0100
+++ - 2024-03-13 15:54:07.537292811 +0100
@@ -43,7 +43,7 @@
#include <sys/types.h>
#include <sys/wait.h>
-#ifdef __APPLE__ || __FREEBSD__
+#if defined(__APPLE__) || defined(__FREEBSD__)
#include <libgen.h>
#endif
--- a/tests/process_iterator_test.c 2015-06-17 08:46:59.000000000 +0200
+++ - 2024-03-13 15:55:44.449780935 +0100
@@ -28,7 +28,7 @@
#include <signal.h>
#include <string.h>
-#ifdef __APPLE__ || __FREEBSD__
+#if defined(__APPLE__) || defined(__FREEBSD__)
#include <libgen.h>
#endif