[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch for GNU grep to allow compilation on FreeBSD
From: |
Tim Robbins |
Subject: |
Patch for GNU grep to allow compilation on FreeBSD |
Date: |
Wed, 23 Oct 2002 22:00:18 +1000 |
User-agent: |
Mutt/1.2.5.1i |
Hi,
This patch is required for GNU grep 2.5 to build on FreeBSD 5.0-CURRENT;
I assume it is also required for everything after and including
4.4-RELEASE.
The problem is that FreeBSD's strerror_r() returns int (as required by
IEEE Std. 1003.1-2001), not char * like glibc.
--- error.c.orig Wed Oct 23 21:38:16 2002
+++ error.c Wed Oct 23 21:38:30 2002
@@ -55,7 +55,7 @@
#ifndef HAVE_DECL_STRERROR_R
"this configure-time declaration test was not run"
#endif
-#if !HAVE_DECL_STRERROR_R
+#if HAVE_WORKING_STRERROR_R && !HAVE_DECL_STRERROR_R
char *strerror_r ();
#endif
Tim
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Patch for GNU grep to allow compilation on FreeBSD,
Tim Robbins <=