summaryrefslogtreecommitdiff
path: root/goo
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-02-10 23:52:13 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-02-10 23:52:57 +0100
commit258a25fc02976db194e3eb1e383921a328c72a94 (patch)
tree1aa997416c88ccd1f7d389993b08d01cf8d3e3c9 /goo
parentd14a96210f5def63a817c9a2c6d9e971c7272717 (diff)
gbasename: Include stdlib for free
fixes macos build
Diffstat (limited to 'goo')
-rw-r--r--goo/gbasename.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/goo/gbasename.cc b/goo/gbasename.cc
index 8c1f8656..830c1c80 100644
--- a/goo/gbasename.cc
+++ b/goo/gbasename.cc
@@ -35,6 +35,7 @@
// This file is licensed under the GPLv2 or later
//
// Copyright (C) 2018, 2019 Greg Knight <lyngvi@gmail.com>
+// Copyright (C) 2019 Albert Astals Cid <aacid@kde.org>
//
//========================================================================
@@ -42,6 +43,7 @@
#ifndef _MSC_VER
# include <libgen.h>
#endif
+#include <stdlib.h>
#include <string.h>
std::string gbasename(const char* filename)