w_scan: unbreak musl

This commit is contained in:
Jürgen Buchmüller 2016-05-03 23:56:05 +02:00
parent ed46a3334c
commit dbc55ca7a0
3 changed files with 58 additions and 1 deletions

View File

@ -0,0 +1,21 @@
--- Makefile.in 2014-11-22 12:00:00.000000000 +0100
+++ Makefile.in 2016-05-03 23:44:44.859376553 +0200
@@ -836,7 +836,7 @@
@echo "/* AUTOMATICALLY GENERATED - DO NOT EDIT MANUALLY */" > version.h
@echo "#ifndef W_SCAN_VERSION_H" >> version.h
@echo "#define W_SCAN_VERSION_H" >> version.h
- @echo "uint version=$(__VERSION);" >> version.h
+ @echo "unsigned int version=$(__VERSION);" >> version.h
@echo "#endif" >> version.h
@echo "" >> version.h
@chmod a-x version.h
--- version.h 2014-11-22 11:59:56.000000000 +0100
+++ version.h 2016-05-03 23:42:59.612376864 +0200
@@ -1,6 +1,6 @@
/* AUTOMATICALLY GENERATED - DO NOT EDIT MANUALLY */
#ifndef W_SCAN_VERSION_H
#define W_SCAN_VERSION_H
-uint version=20141122;
+unsigned int version=20141122;
#endif

View File

@ -0,0 +1,32 @@
--- dump-xml.c 2014-11-22 09:49:26.000000000 +0100
+++ dump-xml.c 2016-05-03 23:36:55.792377942 +0200
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include "si_types.h"
#include "dump-xml.h"
--- scan.c 2014-11-23 10:59:26.000000000 +0100
+++ scan.c 2016-05-03 23:39:03.783377563 +0200
@@ -51,6 +51,7 @@
-#include <sys/poll.h>
+#include <poll.h>
#include <unistd.h>
#include <fcntl.h>
+#include <time.h>
#include <signal.h>
#include <assert.h>
#include <getopt.h>
--- emulate.c 2014-11-22 09:49:26.000000000 +0100
+++ emulate.c 2016-05-03 23:40:41.457377274 +0200
@@ -3,6 +3,7 @@
#include <stdint.h>
#include <string.h>
#include <ctype.h>
+#include <time.h>
-#include <sys/errno.h>
+#include <errno.h>
#include "emulate.h"

View File

@ -1,7 +1,8 @@
# Template file for 'w_scan'
pkgname="w_scan"
version="20141122"
revision=1
revision=2
hostmakedepends="automake libtool"
short_desc="A universal ATSC and DVB blind scanner"
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
license="GPL-2"
@ -10,3 +11,6 @@ distfiles="http://wirbel.htpc-forum.de/w_scan/w_scan-${version}.tar.bz2"
checksum="b6d7c9ab997c53a0b0d92e8390f313cc3b82ee8ece1756b4e526119fd5ba09b4"
build_style="gnu-configure"
pre_configure() {
autoreconf -if
}