[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-apl] PATCH: fix compilation issues on old Linux boxes
From: |
Alexey Veretennikov |
Subject: |
[Bug-apl] PATCH: fix compilation issues on old Linux boxes |
Date: |
Tue, 27 Dec 2016 14:05:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) |
Hi,
Here is the patch which fixes compilation issues on my old ARM linux box
with GCC 3.x and kernel 2.4
Index: src/APs/APserver.cc
===================================================================
--- src/APs/APserver.cc (revision 829)
+++ src/APs/APserver.cc (working copy)
@@ -611,7 +611,7 @@
request->get__GET_OFFERING_PROCS__offered_to_proc();
vector<AP_num> processors;
db.get_offering_processors(to_proc, processors);
- string sprocs((const char *)processors.data(),
+ string sprocs((const char *)&processors[0],
processors.size()*sizeof(AP_num));
OFFERING_PROCS_ARE_c(fd, sprocs);
}
@@ -625,7 +625,7 @@
request->get__GET_OFFERED_VARS__accepted_by_proc();
vector<uint32_t> varnames;
db.get_offered_variables(to_proc, from_proc, varnames);
- string svars((const char *)varnames.data(),
+ string svars((const char *)&varnames[0],
varnames.size()*sizeof(uint32_t));
OFFERED_VARS_ARE_c(fd, svars);
}
Index: src/Parallel.hh
===================================================================
--- src/Parallel.hh (revision 829)
+++ src/Parallel.hh (working copy)
@@ -22,6 +22,7 @@
#define __PARALLEL_HH_DEFINED__
#include "../config.h"
+#include "Common.hh"
// set PARALLEL_ENABLED if wanted and its prerequisites are satisfied
//
--
Br,
/Alexey
- [Bug-apl] PATCH: fix compilation issues on old Linux boxes,
Alexey Veretennikov <=