]> git.meshlink.io Git - meshlink/blobdiff - test/echo-fork.c
Check for the presence of stdatomic.h before using it.
[meshlink] / test / echo-fork.c
index 94000c68cecfb157ddf70ce2395ed2ca4c9b0b99..7fe0ab843fdcc6c9fde3cb8ba4c40bf8a8bf712d 100644 (file)
@@ -174,7 +174,11 @@ static int main2(void) {
 }
 
 
-int main() {
+int main(void) {
+       init_sync_flag(&a_started);
+       init_sync_flag(&a_stopped);
+       init_sync_flag(&b_responded);
+
        meshlink_set_log_cb(NULL, MESHLINK_WARNING, log_cb);
 
        // Initialize and exchange configuration.