diff options
Diffstat (limited to 'meta-oe/recipes-support/tcp-wrappers/tcp-wrappers-7.6/have_strerror.patch')
| -rw-r--r-- | meta-oe/recipes-support/tcp-wrappers/tcp-wrappers-7.6/have_strerror.patch | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/meta-oe/recipes-support/tcp-wrappers/tcp-wrappers-7.6/have_strerror.patch b/meta-oe/recipes-support/tcp-wrappers/tcp-wrappers-7.6/have_strerror.patch deleted file mode 100644 index 31c2b92278..0000000000 --- a/meta-oe/recipes-support/tcp-wrappers/tcp-wrappers-7.6/have_strerror.patch +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | diff -ruN tcp_wrappers_7.6.orig/percent_m.c tcp_wrappers_7.6/percent_m.c | ||
| 2 | --- tcp_wrappers_7.6.orig/percent_m.c 1994-12-28 17:42:37.000000000 +0100 | ||
| 3 | +++ tcp_wrappers_7.6/percent_m.c 2003-08-21 02:45:31.000000000 +0200 | ||
| 4 | @@ -29,11 +29,15 @@ | ||
| 5 | |||
| 6 | while (*bp = *cp) | ||
| 7 | if (*cp == '%' && cp[1] == 'm') { | ||
| 8 | +#ifdef HAVE_STRERROR | ||
| 9 | + strcpy(bp, strerror(errno)); | ||
| 10 | +#else | ||
| 11 | if (errno < sys_nerr && errno > 0) { | ||
| 12 | strcpy(bp, sys_errlist[errno]); | ||
| 13 | } else { | ||
| 14 | sprintf(bp, "Unknown error %d", errno); | ||
| 15 | } | ||
| 16 | +#endif | ||
| 17 | bp += strlen(bp); | ||
| 18 | cp += 2; | ||
| 19 | } else { | ||
