about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThordur Bjornsson <thorduri@secnorth.net>2013-03-17 12:43:06 +0100
committerThordur Bjornsson <thorduri@secnorth.net>2013-03-17 12:43:06 +0100
commitbef67c875c946b941af9751c625086e644690558 (patch)
tree77fc2ab19a8695a0e1de77b535046940dfdbf945
parent20edf4d1605069952a1e9a2ab26b6ad244090ffa (diff)
downloadministat-bef67c875c946b941af9751c625086e644690558.tar.gz
ministat-bef67c875c946b941af9751c625086e644690558.tar.xz
ministat-bef67c875c946b941af9751c625086e644690558.zip
Fix build on OSX 10.8.2 (Mountain Lion).
Verified to build on CentOS 5.5/6.3, Ubuntu 12.10, Bitrig 0.1 and
OpenBSD 5.3
-rw-r--r--.gitignore2
-rw-r--r--ministat.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 96f5216..5a05022 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
 ministat
 *.o
 *.core
+chameleon
+iguana
diff --git a/ministat.c b/ministat.c
index 4fdd12e..873632a 100644
--- a/ministat.c
+++ b/ministat.c
@@ -7,6 +7,8 @@
  * ----------------------------------------------------------------------------
  *
  */
+#include <sys/ioctl.h>
+
 #include <err.h>
 #include <math.h>
 #include <stdio.h>
@@ -16,10 +18,6 @@
 
 #include "queue.h"
 
-#include <asm-generic/ioctls.h>
-#include <asm-generic/termios.h>
-#include <stropts.h>
-
 #define NSTUDENT 100
 #define NCONF 6
 double const studentpct[] = { 80, 90, 95, 98, 99, 99.5 };