Changeset 1393 for trunk/src


Ignore:
Timestamp:
Oct 21, 1999, 4:58:54 PM (26 years ago)
Author:
phaller
Message:

Fix: compiler + library + stack issues fixed

Location:
trunk/src/wsock32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wsock32/async.cpp

    r1384 r1393  
    1 /* $Id: async.cpp,v 1.5 1999-10-20 20:10:55 phaller Exp $ */
     1/* $Id: async.cpp,v 1.6 1999-10-21 14:58:53 phaller Exp $ */
    22
    33/*
     
    3232#include <sys/ioctl.h>
    3333#include <sys/select.h>
    34 #include <unistd.h>
    3534
    3635#include <wsock32const.h>
     
    4948ODINDEBUGCHANNEL(WSOCK32-ASYNC)
    5049
     50
     51// prototype of the OS/2 select!
     52int _System os2_select(int* socket,
     53                       int fd_read,
     54                       int fd_write,
     55                       int fd_exception,
     56                       long timeout);
    5157
    5258
     
    610616
    611617  // call API
    612   pHostent = gethostbyaddr((const char*)pRequest->ul1,
     618  pHostent = gethostbyaddr((char*)pRequest->ul1,
    613619                           (int)        pRequest->ul2,
    614620                           (int)        pRequest->ul3);
     
    663669
    664670  // call API
    665   pHostent = gethostbyname((const char*)pRequest->ul1);
     671  pHostent = gethostbyname((char*)pRequest->ul1);
    666672  if (pHostent == NULL) // error ?
    667673  {
     
    714720
    715721  // call API
    716   pProtoent = getprotobyname((const char*)pRequest->ul1);
     722  pProtoent = getprotobyname((char*)pRequest->ul1);
    717723  if (pProtoent == NULL) // error ?
    718724  {
     
    765771
    766772  // call API
    767   pProtoent = getprotobyname((const char*)pRequest->ul1);
     773  pProtoent = getprotobyname(( char*)pRequest->ul1);
    768774  if (pProtoent == NULL) // error ?
    769775  {
     
    816822
    817823  // call API
    818   pServent = getservbyname((const char*)pRequest->ul1,
    819                            (const char*)pRequest->ul2);
     824  pServent = getservbyname((char*)pRequest->ul1,
     825                           (char*)pRequest->ul2);
    820826  if (pServent == NULL) // error ?
    821827  {
     
    869875  // call API
    870876  pServent = getservbyport((int        )pRequest->ul1,
    871                            (const char*)pRequest->ul2);
     877                           (char*)pRequest->ul2);
    872878  if (pServent == NULL) // error ?
    873879  {
     
    957963
    958964      // readiness for reading bytes ?
    959       irc = ioctl(sockWin, FIONREAD, &iUnknown, sizeof(iUnknown));
     965      irc = ioctl(sockWin, FIONREAD, (char *)&iUnknown, sizeof(iUnknown));
    960966      if ( (irc == 0) && (iUnknown > 0))
    961967         usResult |= FD_READ;
  • trunk/src/wsock32/makefile

    r1384 r1393  
    1 # $Id: makefile,v 1.10 1999-10-20 20:10:57 phaller Exp $
     1# $Id: makefile,v 1.11 1999-10-21 14:58:54 phaller Exp $
    22
    33#
     
    1010PDWIN32_LIB = ..\..\lib
    1111PDWIN32_BIN = ..\..\bin
    12 
     12PDWIN32_TOOLS = ..\..\tools\bin
    1313
    1414!include $(PDWIN32_INCLUDE)/pdwin32.mk
     
    2929        $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \
    3030              $(PDWIN32_LIB)\pmwinx.lib $(PDWIN32_LIB)\user32.lib \
    31               tcpip32.lib tcp32dll.lib so32dll.lib  $(PDWIN32_LIB)\kernel32.lib \
     31              tcp32dll.lib so32dll.lib  $(PDWIN32_LIB)\kernel32.lib \
    3232              $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
    3333        $(CP) $@ $(PDWIN32_BIN)
  • trunk/src/wsock32/wsock32.def

    r1384 r1393  
    1 ; $Id: wsock32.def,v 1.8 1999-10-20 20:11:01 phaller Exp $
     1; $Id: wsock32.def,v 1.9 1999-10-21 14:58:54 phaller Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    99    SetLastError           = KERNEL32.654
    1010    GetLastError           = KERNEL32.340
     11    os2_select             = TCPIP32.12
    1112
    1213
Note: See TracChangeset for help on using the changeset viewer.