Add <time.h> instead of <ctime>

This commit is contained in:
David Cooper 2024-12-03 13:45:13 -05:00
parent 4634b4218f
commit e5fdcb92cb
4 changed files with 18 additions and 18 deletions

View File

@ -1,7 +1,7 @@
pkgbase = butt
pkgdesc = Easy to use, multi OS streaming tool
pkgver = 1.44.0
pkgrel = 2
pkgrel = 3
url = https://danielnoethen.de/butt/
arch = i686
arch = x86_64
@ -21,8 +21,8 @@ pkgbase = butt
depends = libsamplerate
depends = libdatachannel
source = butt-1.44.0.tar.gz::https://danielnoethen.de/butt/release/1.44.0/butt-1.44.0.tar.gz
source = add-ctime-header.patch
source = add-required-time-header.patch
sha256sums = d910b40a10dbca1ce377ee239c146e4746e8b48550ba0a40d6b5199b5c87e0a7
sha256sums = 3c467e58afff269da76dad3aa1a16cdd51edcb77463fc6e0609a738b80c30dba
sha256sums = 6864068cccfb18b1a709bb09d6eeb04f82fad6841970a8256efdb5242405d8fa
pkgname = butt

View File

@ -6,20 +6,20 @@
pkgname=butt
pkgver=1.44.0
pkgrel=2
pkgrel=3
pkgdesc="Easy to use, multi OS streaming tool"
arch=('i686' 'x86_64' 'aarch64' 'armv7h')
license=('GPL2')
url="https://danielnoethen.de/butt/"
depends=('fltk' 'dbus' 'portaudio' 'portmidi' 'libfdk-aac' 'libvorbis' 'libogg' 'lame' 'flac' 'opus' 'libsamplerate' 'libdatachannel')
source=("${pkgname}-${pkgver}.tar.gz::https://danielnoethen.de/${pkgname}/release/${pkgver}/${pkgname}-${pkgver}.tar.gz"
'add-ctime-header.patch')
'add-required-time-header.patch')
sha256sums=('d910b40a10dbca1ce377ee239c146e4746e8b48550ba0a40d6b5199b5c87e0a7'
'3c467e58afff269da76dad3aa1a16cdd51edcb77463fc6e0609a738b80c30dba')
'6864068cccfb18b1a709bb09d6eeb04f82fad6841970a8256efdb5242405d8fa')
prepare() {
cd "${pkgname}-${pkgver}"
patch -Np1 -i ../add-ctime-header.patch
patch -Np1 -i ../add-required-time-header.patch
}
build() {

View File

@ -1,11 +0,0 @@
diff --color -ura butt-1.44.0.orig/src/butt.cpp butt-1.44.0.new/src/butt.cpp
--- butt-1.44.0.orig/src/butt.cpp 2024-12-02 10:16:36.007919951 -0500
+++ butt-1.44.0.new/src/butt.cpp 2024-12-02 10:16:51.167869667 -0500
@@ -47,6 +47,7 @@
#include "butt.h"
#include "command.h"
#include "sockfuncs.h"
+#include <ctime>
#ifndef BUILD_CLIENT
#include "cfg.h"
#include "port_audio.h"

View File

@ -0,0 +1,11 @@
diff --color -ura butt-1.44.0.orig/src/butt.cpp butt-1.44.0.new/src/butt.cpp
--- butt-1.44.0.orig/src/butt.cpp 2024-12-03 13:40:43.270943967 -0500
+++ butt-1.44.0.new/src/butt.cpp 2024-12-03 13:41:13.864214094 -0500
@@ -17,6 +17,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <time.h>
#include <signal.h>
#include <limits.h>