title: Including <termios.h> and <asm/termios.h> in the same project
body: <p>What I want to achieve: I want to set custom <code>baud rate</code> values for some <code>tty*</code>-like <code>UART</code>-mapped terminals.</p>
  
  <p>How: The only way I found by far is to use the <code>struct termios2</code> structure which is located in<code>&lt;asm/termios&gt;</code> header (as mentioned <a href="https://stackoverflow.com/questions/12646324/how-to-set-a-custom-baud-rate-on-linux">here</a>, first answer).</p>
  
  <p>My solution works very well by far, but now I need to use some functions:</p>
  
  <pre><code>speed_t cfgetispeed(const struct termios *);
  int     tcdrain(int);
  int     tcflow(int, int);
  int     tcflush(int, int);
  int     tcgetattr(int, struct termios *);
  pid_t   tcgetsid(int);
  int     tcsendbreak(int, int);
  int     tcsetattr(int, int, struct termios *);
  </code></pre>
  
  <p>The problem is that in <code>&lt;asm/termios.h&gt;</code> there are no such functions, and I need to include <code>&lt;termios.h&gt;</code> for being able to use them.</p>
  
  <p>Problem: If I include both headers (<code>&lt;asm/termios.h&gt;</code> and <code>&lt;termios.h&gt;</code>) the compiler will scream about functions and structure re-declaration, and he's right.</p>
  
  <p>How can I solve this without using some obscure practice (like wrapping one of headers in a namespace, like mentioned <a href="https://stackoverflow.com/questions/6670738/is-it-a-good-idea-to-wrap-an-include-in-a-namespace-block">here</a>)?</p>