This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch for Review: Add regex functions checks to fastjar/configure.in


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/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]