<p>This is strange.<br>
It doesn't happen in my MSYS2 installation.<br>
I'm wondering why your gcc is considering <code>/usr/include/stdlib.h</code> and so get confused about the <code>realpath</code> definition.</p>
<p>I think the proper location of the header is <code>/msys64/mingw32/i686-w64-mingw32/include/stdlib.h</code> and there is also no definition of <code>realpth</code> and so no problem.</p>
<pre><code>$ gcc --version
gcc.exe (Rev1, Built by MSYS2 project) 9.2.0
...
depbase=`echo tm_source_file.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../../libtool --silent  --tag=CC   --mode=compile ccache gcc -DHAVE_CONFIG_H -I. -I../..  -I. -I../../ctags/main -DGEANY_PRIVATE -DG_LOG_DOMAIN=\"Tagmanager\"  -mms-bitfields -pthread -mms-bitfields -IC:/msys64/mingw32/include/gtk-2.0 -IC:/msys64/mingw32/lib/gtk-2.0/include -IC:/msys64/mingw32/include/pango-1.0 -IC:/msys64/mingw32/include/fribidi -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/cairo -IC:/msys64/mingw32/include/atk-1.0 -IC:/msys64/mingw32/include/cairo -IC:/msys64/mingw32/include/pixman-1 -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/freetype2 -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/harfbuzz -IC:/msys64/mingw32/include/libpng16 -IC:/msys64/mingw32/include/gdk-pixbuf-2.0 -IC:/msys64/mingw32/include/libpng16 -IC:/msys64/mingw32/include -IC:/msys64/mingw32/lib/libffi-3.2.1/include -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/glib-2.0 -IC:/msys64/mingw32/lib/glib-2.0/include -IC:/msys64/mingw32/include -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32 -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGEANY_EXPORT_SYMBOL="__declspec(dllexport)" -DGEANY_API_SYMBOL=GEANY_EXPORT_SYMBOL -g -DGEANY_DEBUG -g -O2 -MT tm_source_file.lo -MD -MP -MF $depbase.Tpo -c -o tm_source_file.lo tm_source_file.c &&\
mv -f $depbase.Tpo $depbase.Plo
</code></pre>

<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/issues/2261?email_source=notifications&email_token=AAIOWJ7GC3CJTY7OOVL5XTLQE7WH5A5CNFSM4IMLQLLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QKKGQ#issuecomment-522233114">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2YW2FQT2WI7JJGHITQE7WH5ANCNFSM4IMLQLLA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ6TQZDVNI2PSDX4ZFTQE7WH5A5CNFSM4IMLQLLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QKKGQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2261?email_source=notifications\u0026email_token=AAIOWJ7GC3CJTY7OOVL5XTLQE7WH5A5CNFSM4IMLQLLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QKKGQ#issuecomment-522233114",
"url": "https://github.com/geany/geany/issues/2261?email_source=notifications\u0026email_token=AAIOWJ7GC3CJTY7OOVL5XTLQE7WH5A5CNFSM4IMLQLLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QKKGQ#issuecomment-522233114",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>