Bug#1066305: 3dchess: FTBFS: init.c:140:21: error: implicit declaration of function ‘time’ [-Werror=implicit-function-declaration]
Steve Langasek
steve.langasek at ubuntu.com
Tue Apr 9 21:29:36 BST 2024
Package: 3dchess
Version: 0.8.1-21
Followup-For: Bug #1066305
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch
Please find attached the fix for this bug, which has been uploaded to
Ubuntu.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
diff -Nru 3dchess-0.8.1/debian/patches/no-implicit-declarations.patch 3dchess-0.8.1/debian/patches/no-implicit-declarations.patch
--- 3dchess-0.8.1/debian/patches/no-implicit-declarations.patch 1969-12-31 16:00:00.000000000 -0800
+++ 3dchess-0.8.1/debian/patches/no-implicit-declarations.patch 2024-04-09 13:23:33.000000000 -0700
@@ -0,0 +1,18 @@
+Description: fix missing declaration of time()
+Author: Steve Langasek <steve.langasek at canonical.com>
+Bug-Debian: https://bugs.debian.org/1066305
+Last-Update: 2024-04-09
+Forwarded: no
+
+Index: 3dchess-0.8.1/src/init.c
+===================================================================
+--- 3dchess-0.8.1.orig/src/init.c
++++ 3dchess-0.8.1/src/init.c
+@@ -29,6 +29,7 @@
+ #include <stdlib.h>
+ #include <malloc.h>
+ #include <sys/time.h>
++#include <time.h>
+ #include "../include/machine.h"
+ #include "../include/3Dc.h"
+
diff -Nru 3dchess-0.8.1/debian/patches/series 3dchess-0.8.1/debian/patches/series
--- 3dchess-0.8.1/debian/patches/series 2022-03-26 18:33:58.000000000 -0700
+++ 3dchess-0.8.1/debian/patches/series 2024-04-09 13:22:34.000000000 -0700
@@ -4,3 +4,4 @@
13_machine.h.patch
hardening.patch
wasteful-CPU-consumption.patch
+no-implicit-declarations.patch
More information about the Pkg-games-devel
mailing list