title: Fatal error: hugetlbfs.h: No such file or directory
body: <p>I'm trying to find value of huge page size using <code>gethugepagesize()</code> function. I found out that <code>hugetlbfs.h</code> library has to be included. When I included the header I got compile error:</p>
  
  <pre><code>Fatal error: hugetlbfs.h: No such file or directory
  </code></pre>
  
  <p>When I skip including library file and call the function, I get linker error as</p>
  
  <pre><code>undefined reference to `gethugepagesize'
  </code></pre>
  
  <p>I looked through the post <a href="https://stackoverflow.com/q/17225200/608639">How to get the value of huge page size?</a>. I couldn't get the solution of the post working.  </p>
  
  <p>Am I missing something?</p>