[PATCH/committed] fix missing ctype.h include
Mike Frysinger
vapier@gentoo.org
Thu Aug 6 07:01:00 GMT 2015
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 --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>
--
2.4.4
More information about the Libc-alpha
mailing list