<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - xf86drm.h:40:17: error: drm.h: No such file or directory"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99972#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - xf86drm.h:40:17: error: drm.h: No such file or directory"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99972">bug 99972</a>
              from <span class="vcard"><a class="email" href="mailto:emil.l.velikov@gmail.com" title="Emil Velikov <emil.l.velikov@gmail.com>"> <span class="fn">Emil Velikov</span></a>
</span></b>
        <pre>Me again ... 

There is some contradiction in your statement - "drm.h" doesn't exist. "drm.h"
does exist in X :-P

But seriously, sounds like want to read-up on pkg-config [1].

In a nut-shell: gcc `pkg-config --cflags --libs libdrm` foo.c bar.c -o binary


[1] <a href="https://people.freedesktop.org/~dbn/pkg-config-guide.html">https://people.freedesktop.org/~dbn/pkg-config-guide.html</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>