+2006-01-07 Josh Bressers <josh@bress.net>
+
+ * Remove sbr/strerror.c -- strerror(3) is defined in C89.
+
2006-01-06 Josh Bressers <josh@bress.net>
* patch #3968: Move the add() function from its own file (add.c) and
[[sigsetjmp((void *)0, 0);]])],[AC_DEFINE(HAVE_SIGSETJMP) AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])
-AC_REPLACE_FUNCS(snprintf strerror strdup)
+AC_REPLACE_FUNCS(snprintf strdup)
dnl Look for the initgroups() declaration. On AIX 4.[13], Solaris 4.1.3, and
dnl ULTRIX 4.2A the function is defined in libc but there's no declaration in
int strcasecmp (const char *s1, const char *s2);
int strncasecmp (const char *s1, const char *s2, size_t n);
-#ifndef HAVE_STRERROR
-char *strerror (int);
-#endif
-
/*
* some prototypes for address parsing system
m_msgdef.c mf.c utils.c
# source for compatibility functions
-COMPAT = snprintf.c strdup.c strerror.c
+COMPAT = snprintf.c strdup.c
OBJS = $(SRCS:.c=.o)
+++ /dev/null
-
-/*
- * strerror.c -- get error message string
- *
- * $Id$
- *
- * This code is Copyright (c) 2002, by the authors of nmh. See the
- * COPYRIGHT file in the root directory of the nmh distribution for
- * complete copyright information.
- */
-
-#include <h/mh.h>
-
-extern int sys_nerr;
-extern char *sys_errlist[];
-
-
-char *
-strerror (int errnum)
-{
- if (errnum > 0 && errnum < sys_nerr)
- return sys_errlist[errnum];
- else
- return NULL;
-}