Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18787 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 26, 2014
1 parent e407ad4 commit e3fdb3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -42,6 +42,8 @@
#include <stdint.h>
#include <assert.h>

#include <arpa/inet.h> /* htonl */

#define PARAM_TABLE_NAME "params"
#define CONT_TABLE_NAME "continuous"

Expand Down
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/simulation_runtime.cpp
Expand Up @@ -451,7 +451,7 @@ int startNonInteractiveSimulation(int argc, char**argv, DATA* data)

/* calc numStep */
data->simulationInfo.numSteps = static_cast<modelica_integer>(round((data->simulationInfo.stopTime - data->simulationInfo.startTime)/data->simulationInfo.stepSize));
infoStreamPrint(LOG_SOLVER, 0, "numberOfIntervals = %d", data->simulationInfo.numSteps);
infoStreamPrint(LOG_SOLVER, 0, "numberOfIntervals = %ld", (long) data->simulationInfo.numSteps);

{ /* Setup the clock */
enum omc_rt_clock_t clock = OMC_CLOCK_REALTIME;
Expand Down

0 comments on commit e3fdb3b

Please sign in to comment.