Changeset 28
- Timestamp:
- Nov 7, 2005 9:58:51 PM (19 years ago)
- Location:
- pjproject/main
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/configure
r25 r28 28 28 OS_NAME=linux 29 29 HOST_NAME=unix 30 # More on linux version 31 KERNEL_VER=`uname -r` 32 if echo $KERNEL_VER | grep '^2\.4' > /dev/null; then 33 LINUX_POLL=select 34 elif echo $KERNEL_VER | grep '^2\.2' > /dev/null; then 35 LINUX_POLL=select 36 elif echo $KERNEL_VER | grep '^2\.0' > /dev/null; then 37 LINUX_EPOLL=select 38 else 39 LINUX_POLL=epoll 40 fi 30 41 elif echo $SYSTEM | grep -i mingw > /dev/null; then 31 42 OS_NAME=win32 … … 55 66 56 67 echo 'Writing build.mak as follows:' 57 echo " MACHINE_NAME=$MACHINE_NAME" 58 echo " OS_NAME=$OS_NAME" 59 echo " HOST_NAME=$HOST_NAME" 60 echo " CC_NAME=$CC_NAME" 68 echo " MACHINE_NAME = $MACHINE_NAME" 69 echo " OS_NAME = $OS_NAME" 70 echo " HOST_NAME = $HOST_NAME" 71 echo " CC_NAME = $CC_NAME" 72 echo " LINUX_POLL = $LINUX_POLL" 61 73 62 74 echo "# Auto-generated build.mak" > build.mak … … 65 77 echo "export HOST_NAME := $HOST_NAME" >> build.mak 66 78 echo "export CC_NAME := $CC_NAME" >> build.mak 79 echo "export LINUX_POLL := $LINUX_POLL" >> build.mak 80 81 echo 82 echo "You may review build.mak if you wish" 67 83 echo "Done." 68 84 -
pjproject/main/pjlib/build/os-linux.mak
r19 r28 15 15 pool_policy_malloc.o sock_bsd.o sock_select.o 16 16 17 #export PJLIB_OBJS += ioqueue_select.o 17 ifeq (epoll,$(LINUX_POLL)) 18 18 export PJLIB_OBJS += ioqueue_epoll.o 19 else 20 export PJLIB_OBJS += ioqueue_select.o 21 endif 19 22 20 23 export PJLIB_OBJS += file_access_unistd.o file_io_ansi.o -
pjproject/main/pjlib/src/pj/ioqueue_common_abs.c
r17 r28 169 169 * successfully (if SO_ERROR is zero). 170 170 */ 171 int value; 172 socklen_t vallen = sizeof(value); 173 int gs_rc = getsockopt(h->fd, SOL_SOCKET, SO_ERROR, 171 { 172 int value; 173 socklen_t vallen = sizeof(value); 174 int gs_rc = getsockopt(h->fd, SOL_SOCKET, SO_ERROR, 174 175 &value, &vallen); 175 if (gs_rc != 0) {176 if (gs_rc != 0) { 176 177 /* Argh!! What to do now??? 177 178 * Just indicate that the socket is connected. The … … 180 181 */ 181 182 bytes_transfered = 0; 182 } else {183 } else { 183 184 bytes_transfered = value; 184 } 185 } 186 } 185 187 #elif defined(PJ_WIN32) && PJ_WIN32!=0 186 188 bytes_transfered = 0; /* success */ -
pjproject/main/pjlib/src/pjlib-test/exception.c
r6 r28 141 141 142 142 for (i=0; i<LOOP; ++i) { 143 if ((rc=test()) != 0) 143 if ((rc=test()) != 0) { 144 PJ_LOG(3,("", "...failed at i=%d (rc=%d)", i, rc)); 144 145 return rc; 146 } 145 147 } 146 148 return 0; -
pjproject/main/pjlib/src/pjlib-test/test.h
r24 r28 6 6 #include <pj/types.h> 7 7 8 #define GROUP_LIBC 09 #define GROUP_OS 010 #define GROUP_DATA_STRUCTURE 011 #define GROUP_NETWORK 012 #define GROUP_FILE 08 #define GROUP_LIBC 1 9 #define GROUP_OS 1 10 #define GROUP_DATA_STRUCTURE 1 11 #define GROUP_NETWORK 1 12 #define GROUP_FILE 1 13 13 #define GROUP_EXTRA 0 14 14 … … 38 38 39 39 #define INCLUDE_ECHO_SERVER 0 40 #define INCLUDE_ECHO_CLIENT 140 #define INCLUDE_ECHO_CLIENT 0 41 41 42 42
Note: See TracChangeset
for help on using the changeset viewer.