[Commits] 48a5dd9: MariaRocks: fix compilation on kvm-rpm-centos7-amd64

Sergei Petrunia psergey at askmonty.org
Tue Mar 7 10:08:41 EET 2017


revision-id: 48a5dd945b8f22ba4bceda7558b9f650fbc0fa43
parent(s): e7948e34ee76cb1525126561f6e812facc1af22a
committer: Sergei Petrunia
branch nick: 10.2-mariarocks
timestamp: 2017-03-07 11:08:41 +0300
message:

MariaRocks: fix compilation on kvm-rpm-centos7-amd64

Define __STDC_FORMAT_MACROS before using PRIu64.
RocksDB does this in many files

---
 storage/rocksdb/rdb_sst_info.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/storage/rocksdb/rdb_sst_info.cc b/storage/rocksdb/rdb_sst_info.cc
index 8c5a7aa..aedb9fd 100644
--- a/storage/rocksdb/rdb_sst_info.cc
+++ b/storage/rocksdb/rdb_sst_info.cc
@@ -14,6 +14,9 @@
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
+/* For PRIu64 use below: */
+#define __STDC_FORMAT_MACROS
+
 #include <my_config.h>
 
 /* This C++ file's header file */


More information about the commits mailing list