summaryrefslogtreecommitdiff
path: root/cad/magic/files/patch-utils__magsgtty.h
diff options
context:
space:
mode:
Diffstat (limited to 'cad/magic/files/patch-utils__magsgtty.h')
-rw-r--r--cad/magic/files/patch-utils__magsgtty.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/cad/magic/files/patch-utils__magsgtty.h b/cad/magic/files/patch-utils__magsgtty.h
new file mode 100644
index 000000000000..8fad15254376
--- /dev/null
+++ b/cad/magic/files/patch-utils__magsgtty.h
@@ -0,0 +1,20 @@
+--- ./utils/magsgtty.h.orig 2011-09-02 12:36:19.000000000 +0200
++++ ./utils/magsgtty.h 2011-09-02 12:39:00.000000000 +0200
+@@ -21,14 +21,10 @@
+ #ifndef _MAGSGTTY_H
+ #define _MAGSGTTY_H
+
+-#if !defined(SYSV) && !defined(CYGWIN)
+-# ifdef ALPHA
+-# undef MAX
+-# undef MIN
+-# endif
+-#include <sgtty.h>
++#if defined(__FreeBSD__)
++#include <termios.h>
+ #else
+-#include <termio.h>
++#include <sgtty.h>
+ #endif
+
+ #endif /* _MAGSGTTY_H */