xfce4-diskperf-plugin: fix build

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-11-02 10:38:06 +01:00
parent 990efc7396
commit e7dc19bbea
No known key found for this signature in database
GPG Key ID: 6764EC32352D0647
2 changed files with 14 additions and 4 deletions

View File

@ -0,0 +1,13 @@
--- panel-plugin/devperf.c 2018-11-02 10:31:36.750842536 +0100
+++ panel-plugin/devperf.c 2018-11-02 10:33:18.000838499 +0100
@@ -39,8 +35,8 @@
#include <errno.h>
#include <sys/time.h>
+#include <sys/types.h>
/* for major() and minor() */
-#define _BSD_SOURCE
-#include <sys/types.h>
+#include <sys/sysmacros.h>
#if defined(__linux__)

View File

@ -1,7 +1,7 @@
# Template file for 'xfce4-diskperf-plugin'
pkgname=xfce4-diskperf-plugin
version=2.6.1
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config intltool"
makedepends="xfce4-panel-devel"
@ -12,9 +12,6 @@ homepage="https://goodies.xfce.org/projects/panel-plugins/xfce4-diskperf-plugin"
distfiles="https://archive.xfce.org/src/panel-plugins/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2"
checksum=212ddc742be3eecb6ad5554e1b1df03d5685cb71f48a558d5f895de37c57e4fa
pre_build() {
sed -i '/<stdlib.h>/a#include <sys\/types.h>' panel-plugin/devperf.c
}
post_install() {
vlicense COPYING
}