summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-05-23 19:45:42 -0400
committerAnthony G. Basile <blueness@gentoo.org>2014-05-23 19:45:42 -0400
commit53b60b403405065959e4c4ffdf0ae6faf87bcdb0 (patch)
treecb8a558082f3761e875542464b3489688f9cf5bd /consoletype.c
parentfunctions.sh: Remove a bashism (diff)
downloadgentoo-functions-53b60b403405065959e4c4ffdf0ae6faf87bcdb0.tar.gz
gentoo-functions-53b60b403405065959e4c4ffdf0ae6faf87bcdb0.tar.bz2
gentoo-functions-53b60b403405065959e4c4ffdf0ae6faf87bcdb0.zip
consoletype.c: add missing include <sys/types.h>gentoo-functions-0.6
major() requires <sys/types.h> according to man 3 makedev. This bug shows up on a musl system, but not glibc or uclibc because of a difference in the way the headers stack.
Diffstat (limited to 'consoletype.c')
-rw-r--r--consoletype.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/consoletype.c b/consoletype.c
index fae7205..5b4dc2a 100644
--- a/consoletype.c
+++ b/consoletype.c
@@ -11,6 +11,7 @@
#include <string.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
+#include <sys/types.h>
#include "headers.h"
int main(int argc, char *argv[])