Skip to content

Commit 2865f05

Browse files
author
ktnb
committed
toxcore: attempt to fix build error on NetBSD 11
1 parent fd0d23b commit 2865f05

3 files changed

Lines changed: 21 additions & 5 deletions

File tree

chat/toxcore/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile,v 1.9 2026/02/09 14:00:05 ktnb Exp $
1+
# $NetBSD: Makefile,v 1.10 2026/02/13 02:55:05 ktnb Exp $
22

33
DISTNAME= toxcore-0.2.22
44
CATEGORIES= chat
@@ -13,9 +13,10 @@ HOMEPAGE= https://tox.chat/
1313
COMMENT= Tox protocol library
1414
LICENSE= gnu-gpl-v3
1515

16-
USE_LANGUAGES= c99 c++
17-
USE_TOOLS= pkg-config
18-
TEST_TARGET= test
16+
USE_LANGUAGES= c++
17+
USE_CC_FEATURES= c99
18+
USE_TOOLS= pkg-config
19+
TEST_TARGET= test
1920

2021
CMAKE_CONFIGURE_ARGS+= -DCMAKE_POLICY_VERSION_MINIMUM=3.5
2122

chat/toxcore/distinfo

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
$NetBSD: distinfo,v 1.8 2026/02/09 14:00:05 ktnb Exp $
1+
$NetBSD: distinfo,v 1.9 2026/02/13 02:55:05 ktnb Exp $
22

33
BLAKE2s (camgunz-cmp-v20.tar.gz) = a5160868b63f1a24bfa217d1b8a3480999ef5d6c90bb1feee84a7a096e03941c
44
SHA512 (camgunz-cmp-v20.tar.gz) = f747cb9672592d8c06d08786152a0bfbd6ae4d759d7006805913781c502bf3796241ade636ce2cf9c049f68dd2899e2d5d7008815f29c1a91fc797590a26a9fd
55
Size (camgunz-cmp-v20.tar.gz) = 40252 bytes
66
BLAKE2s (toxcore-0.2.22.tar.gz) = d95e209cd3cb249bacb432ccbfa5a29cf88f56654103924b8265a58c662c7e17
77
SHA512 (toxcore-0.2.22.tar.gz) = c42fba4da94eb5ec28f4b9c8afb3ad61ec36c1a17dabb6dd5530caa31b66192bdb0b057a2e939dccb7ffe91ec24691e8953e0641cd33f0dd7edea921910f7b1a
88
Size (toxcore-0.2.22.tar.gz) = 959762 bytes
9+
SHA1 (patch-testing_support_public_random.hh) = 0e2c8a124b9b3fdd22ce2cd24d153c67b8e489de
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
$NetBSD: patch-testing_support_public_random.hh,v 1.1 2026/02/13 02:55:05 ktnb Exp $
2+
3+
File uses size_t, include it.
4+
5+
--- testing/support/public/random.hh.orig 2026-02-07 20:14:53.000000000 +0000
6+
+++ testing/support/public/random.hh
7+
@@ -3,6 +3,7 @@
8+
9+
#include <cstdint>
10+
#include <vector>
11+
+#include <stdlib.h>
12+
13+
#include "../../../toxcore/attributes.h"
14+

0 commit comments

Comments
 (0)