
#include <pthread.h>
#include <resolv.h>
#include "res_internal.h"

int res_init()
{
    if (_res_init()) {
	return 0;
    } else {
	/* Due to clever tricks in _res_init(), a check for h_errno will
	 * return NO_RECOVERY even if the next try at initialization
	 * succeeds, so it's okay that we can't set an error value here. */
	return -1;
    }
}

