1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/misc/openvdb/files/patch-openvdb_openvdb_points_AttributeSet.h
Piotr Kubaj cbb085f1db misc/openvdb: fix build on GCC architectures
/wrkdirs/usr/ports/misc/openvdb/work/openvdb-7.1.0/openvdb/points/AttributeSet.h:461:60:
error: 'CHAR_BIT' was not declared in this scope
  461 |     static size_t groupBits() { return sizeof(GroupType) * CHAR_BIT; }
      |                                                            ^~~~~~~~
/wrkdirs/usr/ports/misc/openvdb/work/openvdb-7.1.0/openvdb/points/AttributeSet.h:1:1:
note: 'CHAR_BIT' is defined in header '<climits>'; did you forget to '#include <climits>'?
  +++ |+#include <climits>
    1 | // Copyright Contributors to the OpenVDB Project
2020-12-14 11:09:51 +00:00

11 lines
270 B
C++

--- openvdb/openvdb/points/AttributeSet.h.orig 2020-12-14 01:40:20 UTC
+++ openvdb/openvdb/points/AttributeSet.h
@@ -14,6 +14,7 @@
#include <openvdb/version.h>
#include <openvdb/MetaMap.h>
+#include <climits>
#include <limits>
#include <memory>
#include <vector>