OSDN Git Service

scripts/mkflags.c: add missing unistd.h, ctype.h
authorIsaac Dunham <ibid.ag@gmail.com>
Wed, 5 Aug 2015 02:40:56 +0000 (19:40 -0700)
committerRob Landley <rob@landley.net>
Sat, 8 Aug 2015 22:03:38 +0000 (17:03 -0500)
scripts/mkflags.c

index d87087b..7e57f84 100644 (file)
@@ -6,10 +6,12 @@
 // This is intentionally crappy code because we control the inputs. It leaks
 // memory like a sieve and segfaults if malloc returns null, but does the job.
 
+#include <unistd.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
+#include <ctype.h>
 
 struct flag {
   struct flag *next;