1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

added missing #ifdefs when not compiling with OPAL_ASYNC support

This commit is contained in:
Steffen Vogel 2015-03-21 11:47:08 +01:00
parent befdc520d0
commit a9795eda7c
2 changed files with 9 additions and 0 deletions

View file

@ -20,7 +20,9 @@
#include "socket.h"
#include "gtfpga.h"
#ifdef ENABLE_OPAL_ASYNC
#include "opal.h"
#endif
int config_parse(const char *filename, config_t *cfg, struct settings *set,
struct node **nodes, struct path **paths)
@ -260,6 +262,7 @@ int config_parse_node(config_setting_t *cfg, struct node **nodes)
return ret;
}
#ifdef ENABLE_OPAL_ASYNC
/** @todo: Remove this global variable. */
extern struct opal_global *og;
@ -298,12 +301,16 @@ int config_parse_opal(config_setting_t *cfg, struct node *n)
return 0;
}
#endif /* ENABLE_OPAL_ASYNC */
#ifdef ENABLE_GTFPGA
/** @todo Implement */
int config_parse_gtfpga(config_setting_t *cfg, struct node *n)
{
return 0;
}
#endif /* ENABLE_GTFPGA */
int config_parse_socket(config_setting_t *cfg, struct node *n)
{

View file

@ -13,7 +13,9 @@
/* Node types */
#include "socket.h"
#include "gtfpga.h"
#ifdef ENABLE_OPAL_ASYNC
#include "opal.h"
#endif
#define VTABLE(type, name, fnc) { type, name, config_parse_ ## fnc, \
fnc ## _print, \