nixpkgs/pkgs/development/tools/profiling/oprofile/fix-autoconf-detection-of-perf_events.patch
ghpzin 9b3c45be5e oprofile: fix build with gcc14
- add patch similar to upstream commit
b0acf9f0c0
patch from commit does not work as is because tarball used for build
has `configure` inside and changes to `configure.ac` do not affect it
2025-03-25 11:45:30 +05:30

13 lines
336 B
Diff

diff --git a/configure b/configure
index cf36d5ea43..bb59613ef6 100755
--- a/configure
+++ b/configure
@@ -17215,6 +17215,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <linux/perf_event.h>
+ #include <unistd.h>
#include <asm/unistd.h>
#include <sys/types.h>
#include <string.h>