/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <netinet/in.h>
u_long ntohl(u_long hostlong) {
    void *fptr;
    u_long retval;

    fptr = dlsym(_ChNetinetIn_handle, "ntohl_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return -1;
    }
    dlrunfun(fptr, &retval, ntohl, hostlong);
    return retval;
}
