diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-07-05 17:17:35 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-07-05 19:17:11 +0200 |
commit | 75526aa1e85a8bacb50e917971010d06137a3610 (patch) | |
tree | 33adc0e2410d8af36148a2901c0a20000e0cdaf5 /src/afb-supervision.c | |
parent | 0d05349094ced7eeb487e572beb90fa44dd2ebe0 (diff) |
supervision: Exclude conditionaly the supervision
Exclude from the binder the part related to the supervision
when the supervisor is excluded from the build.
Change-Id: I41193122d63e47b9f0db7f113f88d2d63b783027
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-supervision.c')
-rw-r--r-- | src/afb-supervision.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/afb-supervision.c b/src/afb-supervision.c index 79a9d3fd..be823b3d 100644 --- a/src/afb-supervision.c +++ b/src/afb-supervision.c @@ -14,6 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +#if defined(WITH_SUPERVISION) + #define _GNU_SOURCE #define AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO @@ -395,3 +398,4 @@ static void on_supervision_call(void *closure, struct afb_xreq *xreq) } } +#endif |