title: mk-livestatus 1.1.6p1 fails to compile on Ubuntu 12.04 (precise)
body: <p>When trying to compile CheckMK's livestatus Nagios plugin, I get an error during the "make" process:</p>
  
  <pre><code>g++ -DHAVE_CONFIG_H -I. -I..    -I../nagios -fPIC -g -O2 -MT livestatus_so-TableLog.o -MD -MP -MF .deps/livestatus_so-TableLog.Tpo -c -o livestatus_so-TableLog.o `test -f 'TableLog.cc' || echo './'`TableLog.cc
  TableLog.cc: In member function ‘void TableLog::updateLogfileIndex()’:
  TableLog.cc:250:21: error: expected primary-expression before ‘struct’
  TableLog.cc:250:36: error: ‘d_name’ was not declared in this scope
  TableLog.cc:250:42: error: ‘offsetof’ was not declared in this scope
  make[2]: *** [livestatus_so-TableLog.o] Error 1
  </code></pre>
  
  <p>The relevant part of TableLog.cc:</p>
  
  <pre><code>250         int len = offsetof(struct dirent, d_name)
  251             + pathconf(log_archive_path, _PC_NAME_MAX) + 1;
  </code></pre>
  
  <p>The source is availalbe at <a href="http://www.mathias-kettner.de/download/mk-livestatus-1.1.6p1.tar.gz" rel="nofollow">http://www.mathias-kettner.de/download/mk-livestatus-1.1.6p1.tar.gz</a></p>
  
  <p>There's a mailing list thread about this issue (<a href="http://permalink.gmane.org/gmane.network.nagios.checkmk/2560" rel="nofollow">http://permalink.gmane.org/gmane.network.nagios.checkmk/2560</a>), but it remains unanswered.</p>