Changeset 698
- Timestamp:
- Apr 23, 2012, 7:29:26 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/lib/async_req/async_sock.c
r668 r698 36 36 #define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0) 37 37 #endif 38 #ifdef __OS2__ 39 #define connect(A, B, C) os2_connect(A, B, C) 40 #endif 38 41 39 struct async_send_state { 42 40 int fd; -
trunk/server/source3/build.cmd
r696 r698 13 13 /* version 0.3.6 from 06.04.2012 Herwig (support parallel jobs, show build 14 14 time upon completion) */ 15 /* version 0.3.7 from 23.04.2012 Silvan (compile and link flags need to be 16 set here [happy birthday Jason]) */ 15 17 16 18 /* load the sysfuncs if not already loaded */ … … 22 24 23 25 /* init the version string (don't forget to change) */ 24 version = "0.3. 6"25 version_date = " 06.04.2012"26 version = "0.3.7" 27 version_date = "23.04.2012" 26 28 27 29 /* number of make jobs to execute at the same time */ … … 123 125 if conf = "YES" then do 124 126 address cmd 'SETLOCAL' 125 /* address cmd 'SET CFLAGS=-g -Zomf -O1 -march=pentium -mtune=pentium4'126 address cmd 'SET CXXFLAGS=-g -Zomf -O1 -march=pentium -mtune=pentium4'127 address cmd 'SET LDFLAGS=-s -Zsym -Zmap -Zbin-files -Zomf -Zexe -Zargs-wild -Zargs-resp'128 address cmd 'SET AR=emxomfar'129 address cmd 'SET LIBS=-lsocket -lsyslog' */130 /* disabled options:131 --enable-developer --enable-socket-wrapper132 */133 127 134 128 /* we need to delete the cache file and redo it afterwards */ 135 129 ok = SysFileDelete(cacheFile); 130 131 /* add the compile and link flags to the cache file */ 132 call SetCLFlags 136 133 137 134 /* is cups env set */ … … 298 295 end 299 296 return rc 297 298 /** 299 * set the compile and link flags 300 */ 301 SetCLFlags: procedure expose cacheFile 302 303 call lineout cacheFile, "CFLAGS='-D__EMX__ -DOS2 -D__OS2__ -D__ST_MT_ERRNO__ -O2 -march=pentium -mtune=pentium4'"; 304 call lineout cacheFile, "CXXFLAGS='-D__EMX__ -DOS2 -D__OS2__ -D__ST_MT_ERRNO__ -O2 -march=pentium -mtune=pentium4'"; 305 call lineout cacheFile, "LDFLAGS='-Zmap -Zargs-wild -Zbin-files -Zhigh-mem -D__ST_MT_ERRNO__ -s'"; 306 /* address cmd 'SET AR=emxomfar' 307 address cmd 'SET LIBS=-lsocket -lsyslog' */ 308 return -
trunk/server/source3/lib/os2helper.c
r672 r698 180 180 */ 181 181 182 / / OS/2 specific pipe implementation, we have to use socketpair as select on filehandle is not working183 // and we have to use local variables to be sure we use low mem, as socketpair doesn't work in high mem 182 /* OS/2 specific pipe implementation, we have to use socketpair as select on 183 filehandle is not working. */ 184 184 int os2_pipe(int fds[2]) 185 185 { 186 int mypair[2];187 186 int rc = 0; 188 187 189 rc = socketpair(AF_UNIX, SOCK_STREAM, 0, mypair); 190 if (rc >= 0) { 191 fds[0] = mypair[0]; 192 fds[1] = mypair[1]; 193 } 194 188 rc = socketpair(AF_UNIX, SOCK_STREAM, 0, fds); 195 189 return rc; 196 190 } 197 191 192 #if 0 198 193 // OS/2 specific connect() implementation, as it only works in low mem 199 194 int os2_connect(int fd, const struct sockaddr *address, int address_len) … … 212 207 return rc; 213 208 } 209 #endif 214 210 215 211 /* OS/2-specific random functions. these functions used to be based on APR
Note:
See TracChangeset
for help on using the changeset viewer.