<p>Something like this:</p>
<div class="highlight highlight-source-diff"><pre><span class="pl-c1">diff --git a/configure.ac b/configure.ac</span>
index 7fb7d402..fa3bf5a2 100644
<span class="pl-md">--- a/configure.ac</span>
<span class="pl-mi1">+++ b/configure.ac</span>
<span class="pl-mdr">@@ -9,6 +9,7 @@</span> AC_CONFIG_SRCDIR([po/POTFILES.in])
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([build/cache])
 
<span class="pl-mi1"><span class="pl-mi1">+</span>AC_USE_SYSTEM_EXTENSIONS</span>
 AC_PROG_CC
 AC_PROG_CC_C99
 AM_PROG_CC_C_O
<span class="pl-c1">diff --git a/geanylua/glspi_app.c b/geanylua/glspi_app.c</span>
index 23818170..f6379f74 100644
<span class="pl-md">--- a/geanylua/glspi_app.c</span>
<span class="pl-mi1">+++ b/geanylua/glspi_app.c</span>
<span class="pl-mdr">@@ -4,7 +4,10 @@</span>
  * See the file "geanylua.c" for copyright information.
  */
 
<span class="pl-md"><span class="pl-md">-</span>#define _BSD_SOURCE /* for stat() and lstat() */</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>#ifdef HAVE_CONFIG_H</span>
<span class="pl-mi1"><span class="pl-mi1">+</span># include "config.h"</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>#endif</span>
<span class="pl-mi1"><span class="pl-mi1">+</span></span>
 #include <sys/stat.h>
 #include <stdlib.h>
 #include <unistd.h></pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/issues/646#issuecomment-346607041">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ3cTMAC9JOu9NK8k5nleoG5b9oJlks5s5WZJgaJpZM4Qi3Uc">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_tGSehz1C_ZepYFD4Pjm6bZvPaSks5s5WZJgaJpZM4Qi3Uc.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-plugins/issues/646#issuecomment-346607041"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany-plugins","title":"geany/geany-plugins","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany-plugins"}},"updates":{"snippets":[{"icon":"PERSON","message":"@codebrainz in #646: Something like this:\r\n\r\n```diff\r\ndiff --git a/configure.ac b/configure.ac\r\nindex 7fb7d402..fa3bf5a2 100644\r\n--- a/configure.ac\r\n+++ b/configure.ac\r\n@@ -9,6 +9,7 @@ AC_CONFIG_SRCDIR([po/POTFILES.in])\r\n AC_CONFIG_HEADERS([config.h])\r\n AC_CONFIG_MACRO_DIR([build/cache])\r\n \r\n+AC_USE_SYSTEM_EXTENSIONS\r\n AC_PROG_CC\r\n AC_PROG_CC_C99\r\n AM_PROG_CC_C_O\r\ndiff --git a/geanylua/glspi_app.c b/geanylua/glspi_app.c\r\nindex 23818170..f6379f74 100644\r\n--- a/geanylua/glspi_app.c\r\n+++ b/geanylua/glspi_app.c\r\n@@ -4,7 +4,10 @@\r\n  * See the file \"geanylua.c\" for copyright information.\r\n  */\r\n \r\n-#define _BSD_SOURCE /* for stat() and lstat() */\r\n+#ifdef HAVE_CONFIG_H\r\n+# include \"config.h\"\r\n+#endif\r\n+\r\n #include \u003csys/stat.h\u003e\r\n #include \u003cstdlib.h\u003e\r\n #include \u003cunistd.h\u003e\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany-plugins/issues/646#issuecomment-346607041"}}}</script>