Changeset 85 for psi/trunk/src/tools


Ignore:
Timestamp:
Jan 6, 2007, 4:34:23 PM (19 years ago)
Author:
dmik
Message:

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

File:
1 edited

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]);
Note: See TracChangeset for help on using the changeset viewer.