This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch for Review: Add regex functions checks to fastjar/configure.in
- From: Ranjit Mathew <rmathew at hotmail dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Wed, 29 Jan 2003 00:15:24 +0530
- Subject: Re: Patch for Review: Add regex functions checks to fastjar/configure.in
- References: <b0c3vp$mll$1@main.gmane.org>
Ranjit Mathew wrote:
The following is my attempt to address the fact that the
regex functions like regexec, regcomp, etc. might not be defined
in libc (as on Linux) and might need a separate library like
libregex (as on MinGW).
The following alternative, suggested by Tom, makes use of
the libiberty regex functions instead.
---------------------------------- 8< ----------------------------------
2003-01-26 Ranjit Mathew <rmathew@hotmail.com>
* jargrep.c: Include xregex.h from libiberty instead of
system regex.h for better portability.
--- jargrep.c 2003-01-26 08:10:53.000000000 +0530
+++ jargrep.c 2003-01-26 08:28:11.000000000 +0530
@@ -106,5 +106,4 @@
#include <stdio.h>
#include <unistd.h>
-#include <regex.h>
#include <errno.h>
#include <string.h>
@@ -116,4 +115,7 @@
#include <stdlib.h>
#endif
+
+#include "xregex.h"
+
#include "jargrep.h"
#include "jartool.h"
---------------------------------- 8< ----------------------------------
Sincerely Yours,
Ranjit.
--
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore,
INDIA. Web: http://ranjitmathew.tripod.com/