[geany/geany] 326071: Include <unistd.h> for pathconf() (#2402)

Pino Toscano git-noreply at xxxxx
Sat Nov 23 00:31:43 UTC 2019


Branch:      refs/heads/master
Author:      Pino Toscano <toscano.pino at tiscali.it>
Committer:   elextr <elextr at gmail.com>
Date:        Sat, 23 Nov 2019 00:31:43 UTC
Commit:      32607105d6dcd7e4c38a18bdd80df4916505870e
             https://github.com/geany/geany/commit/32607105d6dcd7e4c38a18bdd80df4916505870e

Log Message:
-----------
Include <unistd.h> for pathconf() (#2402)

The get_path_max() function uses pathconf() in case PATH_MAX is not
defined, and for that <unistd.h> is needed.


Modified Paths:
--------------
    src/tagmanager/tm_source_file.c

Modified: src/tagmanager/tm_source_file.c
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -21,6 +21,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <sys/stat.h>
+#include <unistd.h>
 #include <glib/gstdio.h>
 #ifdef G_OS_WIN32
 # define VC_EXTRALEAN



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list