From: Subrata <sub...@us...> - 2009-01-27 14:48:45
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/socket In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv8887/ltp/testcases/kernel/syscalls/socket Modified Files: socket02.c socket03.c Log Message: This patch fixes compilation warnings introduced recently. Signed-off-by: CAI Qian <ca...@cc...>. Index: socket03.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/socket/socket03.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** socket03.c 16 Jan 2009 10:24:56 -0000 1.1 --- socket03.c 27 Jan 2009 14:48:39 -0000 1.2 *************** *** 58,62 **** #include "usctest.h" ! #define SOCK_NONBLOCK O_NONBLOCK /* Extern Global Variables */ --- 58,64 ---- #include "usctest.h" ! #ifndef SOCK_NONBLOCK ! # define SOCK_NONBLOCK O_NONBLOCK ! #endif /* Extern Global Variables */ Index: socket02.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/socket/socket02.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** socket02.c 16 Jan 2009 10:01:50 -0000 1.1 --- socket02.c 27 Jan 2009 14:48:39 -0000 1.2 *************** *** 75,79 **** /* For Linux these must be the same. */ ! #define SOCK_CLOEXEC O_CLOEXEC /* Extern Global Variables */ --- 75,81 ---- /* For Linux these must be the same. */ ! #ifndef SOCK_CLOEXEC ! # define SOCK_CLOEXEC O_CLOEXEC ! #endif /* Extern Global Variables */ |