Browse Source

fix a type in db_pipes.h; system_getrand to getrand.

Chia-Che Tsai 9 years ago
parent
commit
d07b45f92d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Pal/src/host/Linux/db_pipes.c
  2. 1 1
      Pal/src/host/Linux/pal_linux_defs.h

+ 1 - 1
Pal/src/host/Linux/db_pipes.c

@@ -165,7 +165,7 @@ static int pipe_waitforclient (PAL_HANDLE handle, PAL_HANDLE * client)
     *client = clnt;
 #else
     PAL_IDX connid;
-    system_getrand(&connid, sizeof(PAL_IDX));
+    getrand(&connid, sizeof(PAL_IDX));
     PAL_HANDLE clnt = malloc(HANDLE_SIZE(pipe));
     SET_HANDLE_TYPE(clnt, pipecli);
     clnt->__in.flags |= RFD(0)|WFD(0)|WRITEABLE(0);

+ 1 - 1
Pal/src/host/Linux/pal_linux_defs.h

@@ -5,7 +5,7 @@
 #define PAL_LINUX_DEFS_H
 
 /* internal wrap native pipe inside pipe streams */
-#define USE_PIPE_SYSCALL        1
+#define USE_PIPE_SYSCALL        0
 
 #define USE_VSYSCALL_GETTIME    0
 #define USE_VDSO_GETTIME        1