Skip to content

Commit 22e51a4

Browse files
committed
libnova: Fix implicit declaration of alloca(3).
1 parent 8a24430 commit 22e51a4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

geography/libnova/distinfo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ BLAKE2s (libnova-0.15.0.tar.gz) = ec96b7b6ee6d6bcbc72657722bf7f66ff3e180fe1c0bc1
44
SHA512 (libnova-0.15.0.tar.gz) = 77ab0ccbfe462c03a21e88656cb4d6389994ea1da0ee8da997f19a83d24ad8fd9e505e70e1580b75332e826e5b7859b5f2af4417f65eb811440493ba586f2574
55
Size (libnova-0.15.0.tar.gz) = 1533794 bytes
66
SHA1 (patch-src_julian__day.c) = 94114ed1e49a2a4eb426cdda33ed4290c362fd6d
7+
SHA1 (patch-src_utility.c) = b85f90c462520c32c649af3cef9b700d18de6a09
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
$NetBSD$
2+
3+
Fix implicit declaration of alloca(3).
4+
5+
--- src/utility.c.orig 2025-12-20 12:23:08.178327108 +0000
6+
+++ src/utility.c
7+
@@ -44,6 +44,10 @@
8+
#include <ctype.h>
9+
#include <libnova/libnova.h>
10+
11+
+#if defined(__linux__) || defined(__sun)
12+
+#include <alloca.h>
13+
+#endif
14+
+
15+
#ifndef __APPLE__
16+
#include <malloc.h>
17+
#endif

0 commit comments

Comments
 (0)