view src/os/win32/ngx_dlopen.c @ 7445:c9235164bbf1

Win32: enabled both select and poll on Windows by default. Since we now have both select and poll on Windows, it is enough to do not set EVENT_FOUND, auto/modules will enable both automatically.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 24 Jan 2019 22:00:13 +0300
parents 7142b04337d6
children
line wrap: on
line source


/*
 * Copyright (C) Maxim Dounin
 * Copyright (C) Nginx, Inc.
 */


#include <ngx_config.h>
#include <ngx_core.h>


char *
ngx_dlerror(void)
{
    u_char         *p;
    static u_char   errstr[NGX_MAX_ERROR_STR];

    p = ngx_strerror(ngx_errno, errstr, NGX_MAX_ERROR_STR);
    *p = '\0';

    return (char *) errstr;
}