Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / resource / examples / SConscript
index b2ce91f..45de341 100644 (file)
@@ -117,7 +117,7 @@ if target_os not in ['windows', 'msys_nt']:
        if examples_env.get('DISABLE_PRESENCE') == False:
                example_names += ['presenceserver', 'presenceclient']
 
-examples = map(make_single_file_cpp_program, example_names)
+examples = list(map(make_single_file_cpp_program, example_names))
 
 ######################################################################
 # Other examples