Added configure check for regex.h.
diff --git a/configure b/configure
index f558518..f3cf658 100755
--- a/configure
+++ b/configure
@@ -13358,6 +13358,7 @@
+
for ac_header in \
arpa/inet.h \
arpa/nameser.h \
@@ -13386,6 +13387,7 @@
netinet/tcp.h \
pty.h \
pwd.h \
+ regex.h \
sched.h \
scsi/sg.h \
socket.h \
diff --git a/configure.ac b/configure.ac
index 478b2b0..c1ae4a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1017,6 +1017,7 @@
netinet/tcp.h \
pty.h \
pwd.h \
+ regex.h \
sched.h \
scsi/sg.h \
socket.h \
diff --git a/include/config.h.in b/include/config.h.in
index 9352fe3..0863169 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -413,6 +413,9 @@
/* Define to 1 if you have the `pwrite' function. */
#undef HAVE_PWRITE
+/* Define to 1 if you have the <regex.h> header file. */
+#undef HAVE_REGEX_H
+
/* Define to 1 if you have the `resizeterm' function. */
#undef HAVE_RESIZETERM
diff --git a/programs/winedbg/hash.c b/programs/winedbg/hash.c
index c7422cc..1c67a72 100644
--- a/programs/winedbg/hash.c
+++ b/programs/winedbg/hash.c
@@ -1335,6 +1335,8 @@
return TRUE;
}
+#ifdef HAVE_REGEX_H
+
static int cmp_sym_by_name(const void * p1, const void * p2)
{
struct name_hash ** name1 = (struct name_hash **) p1;
@@ -1396,3 +1398,12 @@
}
HeapFree(GetProcessHeap(), 0, array);
}
+
+#else /* HAVE_REGEX_H */
+
+void DEBUG_InfoSymbols(const char* str)
+{
+ DEBUG_Printf( DBG_CHN_MESG, "FIXME: needs regex support\n" );
+}
+
+#endif /* HAVE_REGEX_H */