兼容glibc

Change-Id: I7b1361d8f1e3c31c2d94b31b6addc32869dee457
diff --git a/mbtk/test/liblynq_lib_t106/Makefile b/mbtk/test/liblynq_lib_t106/Makefile
index d8eea05..fefde27 100755
--- a/mbtk/test/liblynq_lib_t106/Makefile
+++ b/mbtk/test/liblynq_lib_t106/Makefile
@@ -5,7 +5,7 @@
 
 LIB_DIR +=
 
-LIBS += -lmbtk_lib -lmbtk_ril -lmbtk_net -lmbtk_audio -lmbtk_fota -lmbtk_gnss -lmbtk_factory -llynq_lib
+LIBS += -lmbtk_lib -lmbtk_ril -lmbtk_net -lmbtk_audio -lmbtk_fota -lmbtk_gnss -lmbtk_factory -llynq_lib -ldl
 
 CFLAGS += 
 
diff --git a/mbtk/test/others/fs_full.c b/mbtk/test/others/fs_full.c
index 88bf28a..cb53e49 100755
--- a/mbtk/test/others/fs_full.c
+++ b/mbtk/test/others/fs_full.c
@@ -7,7 +7,7 @@
 
 int main(int argc, char *argv[])
 {
-    int fd = open("/test.data", O_WRONLY | O_CREAT | O_APPEND);
+    int fd = open("/test.data", O_WRONLY | O_CREAT | O_APPEND, 0666);
     if(fd < 0) {
         printf("open() fail:%d", errno);
         return -1;
diff --git a/mbtk/test/others/partition_write_demo.c b/mbtk/test/others/partition_write_demo.c
index 762e49c..1256d75 100755
--- a/mbtk/test/others/partition_write_demo.c
+++ b/mbtk/test/others/partition_write_demo.c
@@ -12,7 +12,7 @@
     char buffer[102400];
     long len = -1;
     long count = 0;
-    int fd = open("/etc/file.temp", O_CREAT | O_WRONLY | O_TRUNC);
+    int fd = open("/etc/file.temp", O_CREAT | O_WRONLY | O_TRUNC, 0666);
     if(fd < 0) {
         printf("Open file error:%d\n", errno);
         return -1;
diff --git a/mbtk/test/others/usb_check.c b/mbtk/test/others/usb_check.c
index 7d81a7c..9aa5ebf 100755
--- a/mbtk/test/others/usb_check.c
+++ b/mbtk/test/others/usb_check.c
@@ -17,7 +17,7 @@
 
 int main(int argc, char *argv[])
 {
-    int fd = open("/tmp/usb.info", O_CREAT | O_WRONLY);
+    int fd = open("/tmp/usb.info", O_CREAT | O_WRONLY, 0666);
     signal(SIGINT, sig_handler);
     signal(SIGTERM, sig_handler);
     if(fd > 0) {