pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/tint2 tint2: add missing includes



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6f491513fbad
branches:  trunk
changeset: 376703:6f491513fbad
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Tue Apr 12 13:45:58 2022 +0000

description:
tint2: add missing includes

diffstat:

 x11/tint2/distinfo                          |   6 +++++-
 x11/tint2/patches/patch-src_util_bt.c       |  14 ++++++++++++++
 x11/tint2/patches/patch-src_util_common.c   |  14 ++++++++++++++
 x11/tint2/patches/patch-src_util_gradient.c |  14 ++++++++++++++
 x11/tint2/patches/patch-src_util_timer.c    |  23 +++++++++++++++++++++++
 5 files changed, 70 insertions(+), 1 deletions(-)

diffs (96 lines):

diff -r afde4d192076 -r 6f491513fbad x11/tint2/distinfo
--- a/x11/tint2/distinfo        Tue Apr 12 13:40:56 2022 +0000
+++ b/x11/tint2/distinfo        Tue Apr 12 13:45:58 2022 +0000
@@ -1,6 +1,10 @@
-$NetBSD: distinfo,v 1.13 2022/03/11 21:33:34 tnn Exp $
+$NetBSD: distinfo,v 1.14 2022/04/12 13:45:58 tnn Exp $
 
 BLAKE2s (tint2-v17.0.2.tar.bz2) = dac47c5d25014eec0854b22a28ce3417c0dbf15f031c26bcde312401e1708693
 SHA512 (tint2-v17.0.2.tar.bz2) = 2b309fd1ab01e5176cc95e0651f28224b158c2bafd58cfff19840b0f8e880e9f4dcefeff32bc66d5fac11d932d4ee668ea7ddd7bab860f9edcfcdb7074e0e0ed
 Size (tint2-v17.0.2.tar.bz2) = 405654 bytes
 SHA1 (patch-aa) = fdf0fe697ceb576068b0873532ac406b59752370
+SHA1 (patch-src_util_bt.c) = 7b4007a67f20a5fa42b7667ace28f1bf0dc241be
+SHA1 (patch-src_util_common.c) = 66808606e9ab5f138107ac41cfd4f8bd6340baa4
+SHA1 (patch-src_util_gradient.c) = aa245b1c2cff66a34ef70edcc9648d37fb9a72e5
+SHA1 (patch-src_util_timer.c) = 9e6d47957428d1420b9574bf82f8e1ad1f57b11f
diff -r afde4d192076 -r 6f491513fbad x11/tint2/patches/patch-src_util_bt.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/tint2/patches/patch-src_util_bt.c     Tue Apr 12 13:45:58 2022 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_util_bt.c,v 1.1 2022/04/12 13:45:58 tnn Exp $
+
+for bzero(3) on SunOS
+
+--- src/util/bt.c.orig 2021-12-04 09:46:45.000000000 +0000
++++ src/util/bt.c
+@@ -21,6 +21,7 @@
+ #include <stdint.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ #include <sys/types.h>
+ #include <unistd.h>
+ #include <stdio.h>
diff -r afde4d192076 -r 6f491513fbad x11/tint2/patches/patch-src_util_common.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/tint2/patches/patch-src_util_common.c Tue Apr 12 13:45:58 2022 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_util_common.c,v 1.1 2022/04/12 13:45:58 tnn Exp $
+
+for bzero(3) on SunOS
+
+--- src/util/common.c.orig     2021-12-04 09:46:45.000000000 +0000
++++ src/util/common.c
+@@ -26,6 +26,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ #include <math.h>
+ #include <unistd.h>
+ #include <glib.h>
diff -r afde4d192076 -r 6f491513fbad x11/tint2/patches/patch-src_util_gradient.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/tint2/patches/patch-src_util_gradient.c       Tue Apr 12 13:45:58 2022 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_util_gradient.c,v 1.1 2022/04/12 13:45:58 tnn Exp $
+
+for bzero(3) on SunOS
+
+--- src/util/gradient.c.orig   2021-12-04 09:46:45.000000000 +0000
++++ src/util/gradient.c
+@@ -3,6 +3,7 @@
+ #include <glib.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ 
+ #include "common.h"
+ 
diff -r afde4d192076 -r 6f491513fbad x11/tint2/patches/patch-src_util_timer.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/tint2/patches/patch-src_util_timer.c  Tue Apr 12 13:45:58 2022 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_util_timer.c,v 1.1 2022/04/12 13:45:58 tnn Exp $
+
+for bzero(3) on SunOS
+
+--- src/util/timer.c.orig      2021-12-04 09:46:45.000000000 +0000
++++ src/util/timer.c
+@@ -20,6 +20,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <strings.h>
+ 
+ #include "colors.h"
+ #include "timer.h"
+@@ -52,7 +53,7 @@ void init_timer(Timer *timer, const char
+     if (debug_timers)
+         fprintf(stderr, "tint2: timers: %s: %s, %p\n", __FUNCTION__, name, (void *)timer);
+     bzero(timer, sizeof(*timer));
+-    strncpy(timer->name_, name, sizeof(timer->name_));
++    strncpy(timer->name_, name, sizeof(timer->name_) - 1);
+     if (!g_list_find(timers, timer)) {
+         timers = g_list_append(timers, timer);
+     }



Home | Main Index | Thread Index | Old Index