strerror.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 2001, 2004, 2005, 2007, 2009, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: strerror.c,v 1.10 2009/02/16 23:48:04 tbox Exp $ */
/*! \file */
#include <config.h>
#include <stdio.h>
#include <string.h>
#include <isc/strerror.h>
#ifdef HAVE_STRERROR
/*%
* We need to do this this way for profiled locks.
*/
static isc_mutex_t isc_strerror_lock;
static void init_lock(void) {
}
#else
extern const char * const sys_errlist[];
extern const int sys_nerr;
#endif
void
#ifdef HAVE_STRERROR
char *msg;
else
#else
else
#endif
}