Ignore:
Timestamp:
Nov 9, 2011, 6:32:33 PM (14 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: more high mem work

Location:
trunk/server/source3/printing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/printing/print_cups.c

    r599 r659  
    3131#include <cups/language.h>
    3232
     33#ifdef __OS2__
     34#define pipe(A) os2_socketpair(A)
     35#endif
     36
    3337static SIG_ATOMIC_T gotalarm;
    3438
     
    392396        DEBUG(5,("cups_pcap_load_async: asynchronously loading cups printers\n"));
    393397
    394 #ifndef __OS2__
    395398        if (pipe(fds) == -1) {
    396 #else   // on OS2 we have no select() on pipes, so we use socketpair() instead
    397         if (socketpair(AF_UNIX, SOCK_STREAM,0, fds) == -1) {
    398 #endif
    399399                return false;
    400400        }
  • trunk/server/source3/printing/printing.c

    r480 r659  
    2222#include "includes.h"
    2323#include "printing.h"
     24
     25#ifdef __OS2__
     26#define pipe(A) os2_socketpair(A)
     27#endif
    2428
    2529extern struct current_user current_user;
     
    14121416        DEBUG(3,("start_background_queue: Starting background LPQ thread\n"));
    14131417
    1414 #ifndef __OS2__
    14151418        if (pipe(pause_pipe) == -1) {
    1416 #else   // on OS2 we have no select() on pipes, so we use socketpair() instead
    1417         if (socketpair(AF_UNIX, SOCK_STREAM,0, pause_pipe) < 0) {
    1418 #endif
    14191419                DEBUG(5,("start_background_queue: cannot create pipe. %s\n", strerror(errno) ));
    14201420                exit(1);
Note: See TracChangeset for help on using the changeset viewer.