diff mbox

[PATCH/committed] fix missing ctype.h include

Message ID 1438844485-27851-1-git-send-email-vapier@gentoo.org
State New
Headers show

Commit Message

Mike Frysinger Aug. 6, 2015, 7:01 a.m. UTC
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)

Pushed as obvious.
---
 ChangeLog       | 4 ++++
 stdlib/isomac.c | 1 +
 2 files changed, 5 insertions(+)
diff mbox

Patch

diff --git a/ChangeLog b/ChangeLog
index d37ae1a..d7bcedf 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 816298b..e01fd38 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>