/*
* Mini xgethostbyname implementation.
*
- *
* Copyright (C) 2001 Matt Kraai <kraai@alumni.carnegiemellon.edu>.
*
* This program is free software; you can redistribute it and/or modify
*/
#include <netdb.h>
-extern int h_errno;
+#include "libbb.h"
+
struct hostent *xgethostbyname(const char *name)
{
struct hostent *retval;
if ((retval = gethostbyname(name)) == NULL)
- herror_msg_and_die("%s", name);
+ bb_herror_msg_and_die("%s", name);
return retval;
}