/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <winsock.h>

void WSASetLastError(int iError) {
    void *fptr;

    fptr = dlsym(_ChSysSocket_handle, "WSASetLastError_chdl");
    if(fptr == NULL)  {
        printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
    }
    dlrunfun(fptr, NULL, WSASetLastError, iError); 
}
