diff options
author | jedgar <jedgar@FreeBSD.org> | 2002-02-08 04:54:59 +0800 |
---|---|---|
committer | jedgar <jedgar@FreeBSD.org> | 2002-02-08 04:54:59 +0800 |
commit | 34081b75ee4a95940dcd95fb983dd6da8889ec99 (patch) | |
tree | 36b24a69e5967f75dfa469b718c2f083d6a561c7 /misc | |
parent | d2c89a40432c8435a7e6cfe7cbe9db7885ed6fd9 (diff) | |
download | freebsd-ports-gnome-34081b75ee4a95940dcd95fb983dd6da8889ec99.tar.gz freebsd-ports-gnome-34081b75ee4a95940dcd95fb983dd6da8889ec99.tar.zst freebsd-ports-gnome-34081b75ee4a95940dcd95fb983dd6da8889ec99.zip |
strerror_r() returns an exit code, not the error string. This fixes:
$ gnuls blah
gnuls: blah: (null)
$
on recent -stable and -current builds after strerror_r() was
implemented.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/gnuls/Makefile | 1 | ||||
-rw-r--r-- | misc/gnuls/files/patch-ai | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/misc/gnuls/Makefile b/misc/gnuls/Makefile index ab7a05140e34..65a6ba680b28 100644 --- a/misc/gnuls/Makefile +++ b/misc/gnuls/Makefile @@ -7,6 +7,7 @@ PORTNAME= gnuls PORTVERSION= 4.0 +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= fileutils diff --git a/misc/gnuls/files/patch-ai b/misc/gnuls/files/patch-ai new file mode 100644 index 000000000000..8cf9bf7aa38e --- /dev/null +++ b/misc/gnuls/files/patch-ai @@ -0,0 +1,12 @@ +--- lib/error.c.orig Fri Mar 27 12:22:34 1998 ++++ lib/error.c Thu Jan 31 08:49:18 2002 +@@ -152,7 +152,8 @@ + { + #if defined HAVE_STRERROR_R || defined _LIBC + char errbuf[1024]; +- fprintf (stderr, ": %s", __strerror_r (errnum, errbuf, sizeof errbuf)); ++ __strerror_r (errnum, errbuf, sizeof errbuf); ++ fprintf (stderr, ": %s", errbuf); + #else + fprintf (stderr, ": %s", strerror (errnum)); + #endif |