diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2016-06-30 20:07:31 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-06-30 20:07:31 +0100 |
commit | 99e72a15af138b63c8776b44f3e83f2afe30df2d (patch) | |
tree | 8af2173fc255fb7c370e993e9e2888bbc96c7115 /wrappers | |
parent | 72274572c47c39ee54b5d8c5f7a1b0de8fa1c7c1 (diff) |
gltrace: std::free -> free.
Diffstat (limited to 'wrappers')
-rw-r--r-- | wrappers/dlsym.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wrappers/dlsym.cpp b/wrappers/dlsym.cpp index 5f34a2f0..5947424d 100644 --- a/wrappers/dlsym.cpp +++ b/wrappers/dlsym.cpp @@ -26,6 +26,8 @@ #include <assert.h> +#include <stdlib.h> + #include <memory> #include "os.hpp" @@ -101,7 +103,7 @@ enum LibClass { inline LibClass classifyLibrary(const char *pathname) { - std::unique_ptr<char, decltype(std::free) *> dupname { strdup(pathname), std::free }; + std::unique_ptr<char, decltype(free) *> dupname { strdup(pathname), free }; char *filename = basename(dupname.get()); assert(filename); |