about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-06 02:44:44 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-06 02:59:52 -0400
commit283c873654a58fa21a65de3031f78f194192ff90 (patch)
tree0e9d6e51e7b3db7589e6566112c07b5ec96d3ed6
parentc1f4108352e446285e99f046e3929ed13d5e9851 (diff)
downloadglibc-283c873654a58fa21a65de3031f78f194192ff90.tar.gz
glibc-283c873654a58fa21a65de3031f78f194192ff90.tar.xz
glibc-283c873654a58fa21a65de3031f78f194192ff90.zip
fix missing ctype.h include
This file uses isspace but doesn't include ctype.h leading to:
isomac.c: In function 'get_null_defines':
isomac.c:305:30: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration]
	for (end = start + 1; !isspace (*end) && *end != '\0'; ++end)
-rw-r--r--ChangeLog4
-rw-r--r--stdlib/isomac.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d37ae1a8b1..d7bcedfb32 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-08-06  Mike Frysinger  <vapier@gentoo.org>
+
+	* stdlib/isomac.c: Include ctype.h.
+
 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
 
 	* dirent/tst-seekdir.c (main): Converted to ...
diff --git a/stdlib/isomac.c b/stdlib/isomac.c
index 816298b210..e01fd384e3 100644
--- a/stdlib/isomac.c
+++ b/stdlib/isomac.c
@@ -70,6 +70,7 @@
 # define _GNU_SOURCE 1
 #endif
 
+#include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>