Changeset 659 for trunk/server/source3/printing
- Timestamp:
- Nov 9, 2011, 6:32:33 PM (14 years ago)
- Location:
- trunk/server/source3/printing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/printing/print_cups.c
r599 r659 31 31 #include <cups/language.h> 32 32 33 #ifdef __OS2__ 34 #define pipe(A) os2_socketpair(A) 35 #endif 36 33 37 static SIG_ATOMIC_T gotalarm; 34 38 … … 392 396 DEBUG(5,("cups_pcap_load_async: asynchronously loading cups printers\n")); 393 397 394 #ifndef __OS2__395 398 if (pipe(fds) == -1) { 396 #else // on OS2 we have no select() on pipes, so we use socketpair() instead397 if (socketpair(AF_UNIX, SOCK_STREAM,0, fds) == -1) {398 #endif399 399 return false; 400 400 } -
trunk/server/source3/printing/printing.c
r480 r659 22 22 #include "includes.h" 23 23 #include "printing.h" 24 25 #ifdef __OS2__ 26 #define pipe(A) os2_socketpair(A) 27 #endif 24 28 25 29 extern struct current_user current_user; … … 1412 1416 DEBUG(3,("start_background_queue: Starting background LPQ thread\n")); 1413 1417 1414 #ifndef __OS2__1415 1418 if (pipe(pause_pipe) == -1) { 1416 #else // on OS2 we have no select() on pipes, so we use socketpair() instead1417 if (socketpair(AF_UNIX, SOCK_STREAM,0, pause_pipe) < 0) {1418 #endif1419 1419 DEBUG(5,("start_background_queue: cannot create pipe. %s\n", strerror(errno) )); 1420 1420 exit(1);
Note:
See TracChangeset
for help on using the changeset viewer.