kmscon: fix build and xlint

Needs sys/sysmacros.h for definitions of major and minor.
This commit is contained in:
Jürgen Buchmüller 2020-05-27 12:00:46 +02:00
parent cd5c2e15d8
commit 653e880ecf
2 changed files with 12 additions and 2 deletions

View file

@ -0,0 +1,10 @@
--- src/uterm_vt.c 2013-10-23 23:15:18.865000000 +0200
+++ src/uterm_vt.c 2020-05-27 11:59:09.636287929 +0200
@@ -40,6 +40,7 @@
#include <sys/ioctl.h>
#include <sys/signalfd.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <termios.h>
#include <time.h>
#include <unistd.h>

View file

@ -2,7 +2,6 @@
pkgname=kmscon
version=8
revision=6
lib32disabled=yes
build_style=gnu-configure
configure_args="--disable-static --disable-multi-seat"
hostmakedepends="pkg-config docbook-xsl xkeyboard-config"
@ -13,8 +12,9 @@ short_desc="Terminal emulator based on Kernel Mode Setting (KMS)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://www.freedesktop.org/wiki/Software/kmscon"
distfiles="${FREEDESKTOP_SITE}/kmscon/releases/kmscon-8.tar.xz"
distfiles="${FREEDESKTOP_SITE}/kmscon/releases/kmscon-${version}.tar.xz"
checksum=0ab01c1cdc4fbd692ce765e80478bc2d9663a7c55a5c75cc7ac421366ee6ae2b
lib32disabled=yes
case "$XBPS_TARGET_MACHINE" in
ppc*) broken="ftbfs";;