Changeset 85

Show
Ignore:
Timestamp:
01/06/07 16:34:23 (21 months ago)
Author:
dmik
Message:

Psi: Pipes: Use socketpair() instead of pipe() because the latter is not currently implemented in kLIBC.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • psi/trunk/src/tools/openpgp/gpgproc/qpipe.cpp

    r2 r85  
    1818#include<fcntl.h> 
    1919#include<errno.h> 
     20 
     21#if defined(Q_OS_OS2) && defined(__INNOTEK_LIBC__) 
     22#include<sys/socket.h> 
     23#endif 
    2024 
    2125#endif 
     
    228232#else 
    229233        int p[2]; 
     234#if defined(Q_OS_OS2) && defined(__INNOTEK_LIBC__) 
     235        if(socketpair(AF_LOCAL, SOCK_STREAM, 0, p) == -1) 
     236#else 
    230237        if(pipe(p) == -1) 
     238#endif 
    231239                return false; 
    232240        i.setId(p[0]);