diff --git a/src/cmedia/cmedia.cxx b/src/cmedia/cmedia.cxx
index ba01f5d..0bd3c1c 100644
--- a/src/cmedia/cmedia.cxx
+++ b/src/cmedia/cmedia.cxx
@@ -41,11 +41,6 @@
 #ifndef __WIN32__
 #include <termios.h>
 #include <glob.h>
-#  ifndef __APPLE__
-#    ifndef __FreeBSD__
-#      include <error.h>
-#    endif
-#  endif
 #endif
 
 #include "config.h"
diff --git a/src/cmedia/tmate2.cxx b/src/cmedia/tmate2.cxx
index 8a3e37a..cde0c76 100644
--- a/src/cmedia/tmate2.cxx
+++ b/src/cmedia/tmate2.cxx
@@ -44,11 +44,6 @@
 #ifndef __WIN32__
 #include <termios.h>
 #include <glob.h>
-#  ifndef __APPLE__
-#    ifndef __FreeBSD__
-#      include <error.h>
-#    endif
-#  endif
 #endif
 
 #include "config.h"
