diff options
Diffstat (limited to 'dev-util/oprofile')
-rw-r--r-- | dev-util/oprofile/files/config-implicit.patch | 11 | ||||
-rw-r--r-- | dev-util/oprofile/oprofile-1.4.0.ebuild | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/dev-util/oprofile/files/config-implicit.patch b/dev-util/oprofile/files/config-implicit.patch new file mode 100644 index 000000000000..5ac20ef44e9f --- /dev/null +++ b/dev-util/oprofile/files/config-implicit.patch @@ -0,0 +1,11 @@ +diff '--color=auto' -ruN oprofile-1.4.0.orig/configure.ac oprofile-1.4.0/configure.ac +--- oprofile-1.4.0.orig/configure.ac 2024-11-17 20:45:17.223265547 +0100 ++++ oprofile-1.4.0/configure.ac 2024-11-17 20:52:05.146394249 +0100 +@@ -118,6 +118,7 @@ + #include <asm/unistd.h> + #include <sys/types.h> + #include <string.h> ++ #include <unistd.h> + ]], + [[struct perf_event_attr attr; + pid_t pid; diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild b/dev-util/oprofile/oprofile-1.4.0.ebuild index 60a651a71e68..e4667ded8841 100644 --- a/dev-util/oprofile/oprofile-1.4.0.ebuild +++ b/dev-util/oprofile/oprofile-1.4.0.ebuild @@ -48,6 +48,7 @@ pkg_setup() { src_prepare() { eapply "${FILESDIR}/musl.patch" eapply "${FILESDIR}/gcc12.patch" + eapply "${FILESDIR}/config-implicit.patch" # bug 723092 sed -i 's/==/=/g' configure.ac || die |