void-packages/srcpkgs/trace-cmd/patches/musl-limits_h.patch

41 lines
913 B
Diff

--- a/lib/trace-cmd/trace-plugin.c
+++ b/lib/trace-cmd/trace-plugin.c
@@ -6,6 +6,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <dlfcn.h>
+#include <limits.h>
#include <sys/stat.h>
#include <libgen.h>
#include "trace-cmd.h"
--- a/tracecmd/trace-agent.c
+++ b/tracecmd/trace-agent.c
@@ -14,6 +14,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
+#include <limits.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <unistd.h>
--- a/tracecmd/trace-setup-guest.c
+++ b/tracecmd/trace-setup-guest.c
@@ -13,6 +13,7 @@
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <limits.h>
#include "trace-local.h"
#include "trace-msg.h"
--- a/utest/tracecmd-utest.c
+++ b/utest/tracecmd-utest.c
@@ -13,6 +13,7 @@
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/types.h>
+#include <limits.h>
#include <CUnit/CUnit.h>
#include <CUnit/Basic.h>