aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2016-12-20 23:42:08 -0500
committercnlohr <lohr85@gmail.com>2016-12-20 23:42:08 -0500
commit6a97ca8cc0fc7a98519bd63f6f7dbaa6ce38987d (patch)
tree0d93bab520e905b6e5c92c004a7b680f80b96903 /src
parent2bce90b5a5095c2327bbbba1d0cc4fdb38426ce0 (diff)
downloadlibsurvive-6a97ca8cc0fc7a98519bd63f6f7dbaa6ce38987d.tar.gz
libsurvive-6a97ca8cc0fc7a98519bd63f6f7dbaa6ce38987d.tar.bz2
fix build for new disambiguaor
Diffstat (limited to 'src')
-rw-r--r--src/survive.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/survive.c b/src/survive.c
index 7ad2ae9..af4d804 100644
--- a/src/survive.c
+++ b/src/survive.c
@@ -147,15 +147,21 @@ struct SurviveContext * survive_init()
ctx->headset.ctx = ctx;
memcpy( ctx->headset.codename, "HMD", 4 );
+#ifndef USE_OLD_DISAMBIGUATOR
ctx->headset.d = calloc( 1, sizeof( struct disambiguator ) );
+#endif
ctx->watchman[0].ctx = ctx;
memcpy( ctx->watchman[0].codename, "WM0", 4 );
+#ifndef USE_OLD_DISAMBIGUATOR
ctx->watchman[0].d = calloc( 1, sizeof( struct disambiguator ) );
+#endif
ctx->watchman[1].ctx = ctx;
memcpy( ctx->watchman[1].codename, "WM1", 4 );
+#ifndef USE_OLD_DISAMBIGUATOR
ctx->watchman[1].d = calloc( 1, sizeof( struct disambiguator ) );
+#endif
//USB must happen last.
if( r = survive_usb_init( ctx ) )