diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-10-16 23:35:58 +0800 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-10-16 23:35:58 +0800 |
commit | bc7e359cc926687d722ca83679ecd68ad794e259 (patch) | |
tree | 9ae75bbaac08997b2aa05d589db1d0c246afae2a /converters/pdf2djvu/files | |
parent | 13d4527a34237c3848445140a659128518ca196f (diff) | |
download | freebsd-ports-gnome-bc7e359cc926687d722ca83679ecd68ad794e259.tar.gz freebsd-ports-gnome-bc7e359cc926687d722ca83679ecd68ad794e259.tar.zst freebsd-ports-gnome-bc7e359cc926687d722ca83679ecd68ad794e259.zip |
converters/pdf2djvu: fix build on GCC architectures
When compiling with GCC, as used on GCC architectures, it errors with:
sys-uuid.cc:96:12: error: 'strlen' was not declared in this scope
assert(strlen(s) == 36U);
^~~~~~
sys-uuid.cc:96:12: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
PR: 238780
Approved by: samy.mahmoudi@gmail.com (maintainer timeout), tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D22025
Diffstat (limited to 'converters/pdf2djvu/files')
-rw-r--r-- | converters/pdf2djvu/files/patch-sys-uuid.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/converters/pdf2djvu/files/patch-sys-uuid.cc b/converters/pdf2djvu/files/patch-sys-uuid.cc new file mode 100644 index 000000000000..49599f09f3f9 --- /dev/null +++ b/converters/pdf2djvu/files/patch-sys-uuid.cc @@ -0,0 +1,11 @@ +--- sys-uuid.cc.orig 2019-06-23 11:41:41 UTC ++++ sys-uuid.cc +@@ -17,6 +17,8 @@ + #include "autoconf.hh" + #include "system.hh" + ++#include <cstring> ++ + #if WIN32 + + #include <cassert> |