about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2018-09-10 12:57:20 +0100
committerDaniel Shahaf <d.s@daniel.shahaf.name>2018-09-10 13:05:46 +0000
commit03a51a6f097a6e4a9bb8d94c2be17ec8a2e300b8 (patch)
tree9d9109d0b482cee57ab06d46446486f48c1d3b37
parentd6859ce68e01cfa1d3c2e047bf4b25118152fdab (diff)
downloadzsh-03a51a6f097a6e4a9bb8d94c2be17ec8a2e300b8.tar.gz
zsh-03a51a6f097a6e4a9bb8d94c2be17ec8a2e300b8.tar.xz
zsh-03a51a6f097a6e4a9bb8d94c2be17ec8a2e300b8.zip
GitHub #28: Add missing math.h include for builtins
math.h is required for isnan/isinf
-rw-r--r--ChangeLog5
-rw-r--r--Src/builtin.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 94d8338bb..4b7559723 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-09-10  Jörg Thalheim  <joerg@thalheim.io>
+
+	* GitHub #28: Src/builtin.c: Add missing math.h include for
+	builtins
+
 2018-09-10  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* 43426: Test/W02jobs.ztst: disable tests involving suspending
diff --git a/Src/builtin.c b/Src/builtin.c
index 93fa9112c..4abc7da35 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -33,6 +33,8 @@
 #include "zsh.mdh"
 #include "builtin.pro"
 
+#include <math.h>
+
 /* Builtins in the main executable */
 
 static struct builtin builtins[] =