From 29e96bb865a152ac56370d4ba618b3b4e1398ca4 Mon Sep 17 00:00:00 2001
From: Leonardo Taccari <leot@NetBSD.org>
Date: Tue, 6 Jan 2026 18:14:30 +0100
Subject: [PATCH] calloc(3) and exit(3) needs <stdlib.h>

Noticed by building on NetBSD.
---
 src/dialog.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/dialog.cc b/src/dialog.cc
index e671b8ab..8254c1ed 100644
--- a/src/dialog.cc
+++ b/src/dialog.cc
@@ -14,6 +14,7 @@
  */
 
 #include <math.h> // for rint()
+#include <stdlib.h>
 #include <string.h>
 #include <errno.h>
 
-- 
2.52.0

