summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-04-21 21:14:55 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-04-21 21:14:55 +0200
commit20e5eabf2f438cb4b47983c4325f89cd62dfd3b0 (patch)
treede40b04c515d65ab890573cc2f1242c20aeacf2b
parent59ff844767ec1b7f2981e3da8254b1750e5b9714 (diff)
Fix compilation with gcc-15
submitted by: LAP
-rw-r--r--NEWS4
-rw-r--r--src/pnm.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 64a432b..6e6bf8b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,10 @@
pnmcurve ChangeLog
==================
+pnmcurve-0.0.5
+ - Fix compilation with gcc-15
+ (submitted by: LAP)
+
pnmcurve-0.0.4
- Use strsep replacement in pnmcurvedit too
(thanks to Tim Larson for testing).
diff --git a/src/pnm.c b/src/pnm.c
index 3edbcd3..39574ce 100644
--- a/src/pnm.c
+++ b/src/pnm.c
@@ -8,6 +8,8 @@
/* This code is based on Fl_PNM_Image.cxx from fltk (http://www.fltk.org)
*/
+#include <stdlib.h>
+#include <ctype.h>
#include <string.h>
#include "pnm.h"