commit: 0b13fde2ed08abc2ddea18df2344b842f9f44b3d
parent ab2919e892e964a379f4e2b4287f3385e78d86a1
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 29 May 2020 23:55:25 +0200
Fix implicit-declaration for realpath
Diffstat:
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -33,7 +33,7 @@ EXE_test = uri_test
TRANS = fr.mo pt_BR.mo
DOCS = usr.bin.badwolf README.md KnowledgeBase.md interface.txt
-CDEPS = -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION_FULL)\"
+CDEPS = -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION_FULL)\"
CDEPS += `$(PKGCONFIG) --cflags $(DEPS)`
LIBS = `$(PKGCONFIG) --libs $(DEPS)`
diff --git a/po/messages.pot b/po/messages.pot
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: Badwolf 1.0.0+gfffd169.develop\n"
+"Project-Id-Version: Badwolf 1.0.0+g6880bf7.develop\n"
"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n"
-"POT-Creation-Date: 2020-05-29 23:45+0200\n"
+"POT-Creation-Date: 2020-05-29 23:52+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/uri.c b/uri.c
@@ -4,7 +4,8 @@
#include "uri.h"
-#include <glib.h> /* g_strcmp0() */
+#include <glib.h> /* g_strcmp0(), g_uri_parse_scheme(), g_strdup_printf */
+#include <stdlib.h> /* realpath(), free() */
#include <unistd.h> /* access() */
const gchar *