diff options
Diffstat (limited to 'misc/err.c')
-rw-r--r-- | misc/err.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/misc/err.c b/misc/err.c index 348294427..8035838ef 100644 --- a/misc/err.c +++ b/misc/err.c @@ -17,19 +17,21 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <stdarg.h> -#include <err.h> -#include <stdlib.h> -#include <errno.h> -#include <string.h> -#include <stdio.h> - -#ifdef USE_IN_LIBIO -# define flockfile(s) _IO_flockfile (s) -# define funlockfile(s) _IO_funlockfile (s) +#include "system.h" + +#ifdef HAVE_LIBIO +#define flockfile(s) _IO_flockfile (s) +#define funlockfile(s) _IO_funlockfile (s) +#else +#define flockfile(s) +#define funlockfile(s) +#define putc_unlocked(c,fp) putc(c,fp); +#define fputs_unlocked(s,fp) fputs(s,fp); +#define __set_errno(error) errno = error +#define __ptr_t void * #endif -extern char *__progname; +#include <err.h> #define VA(call) \ { \ |