Mercurial > hg > octave-nkf > gnulib-hg
diff lib/strerror.c @ 8309:e5ee9891c553
Make it possible to compile strerror.c separately, unconditionally.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 03 Mar 2007 19:53:01 +0000 (2007-03-03) |
parents | 8a1a9361108c |
children | 3e28c7035f38 |
line wrap: on
line diff
--- a/lib/strerror.c +++ b/lib/strerror.c @@ -1,6 +1,6 @@ /* strerror.c --- ANSI C compatible system error routine - Copyright (C) 1986, 1988, 1989, 1991, 2002, 2003, 2006 Free + Copyright (C) 1986, 1988, 1989, 1991, 2002, 2003, 2006, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify @@ -21,6 +21,8 @@ #include <limits.h> +#if !HAVE_STRERROR + /* Don't include <stdio.h>, since it may or may not declare sys_errlist and its declarations may collide with ours. Just declare the stuff that we need directly. Standard hosted C89 @@ -45,3 +47,5 @@ else return sys_errlist[n]; } + +#endif /* !HAVE_STRERROR */