From b2e3378b99519782fc27a1a19530c94d91cc1cbf Mon Sep 17 00:00:00 2001 From: meep-eep Date: Fri, 22 Apr 2005 00:57:21 +0000 Subject: [PATCH] Fix unix builds that need the included regex. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1666 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/uio/doc/todo | 3 ++- sc2/src/sc2code/libs/uio/match.h | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/sc2/src/sc2code/libs/uio/doc/todo b/sc2/src/sc2code/libs/uio/doc/todo index 633453fbe..388d9c919 100644 --- a/sc2/src/sc2code/libs/uio/doc/todo +++ b/sc2/src/sc2code/libs/uio/doc/todo @@ -1,6 +1,6 @@ Needed before use in UQM: - documentation -- configuring for HAVE_REGEX and GLOB +- configuring for GLOB - when doing uio_getStdioPhysical(), if write access is required, but not available on the original location, also copy the file to the temporary dir. @@ -122,3 +122,4 @@ Cleanups (not necessary for UQM): - Clean up the include structure + diff --git a/sc2/src/sc2code/libs/uio/match.h b/sc2/src/sc2code/libs/uio/match.h index ec5941056..2cafc1b8d 100644 --- a/sc2/src/sc2code/libs/uio/match.h +++ b/sc2/src/sc2code/libs/uio/match.h @@ -52,11 +52,6 @@ typedef int match_Result; #define match_ECUSTOM -3 #define match_ENOTINIT -4 -#include -#ifdef HAVE_REGEX -# include -#endif - typedef struct match_LitteralContext match_LitteralContext; typedef struct match_PrefixContext match_PrefixContext; typedef struct match_SuffixContext match_SuffixContext; @@ -80,6 +75,11 @@ void match_freeContext(match_MatchContext *context); /* *** Internal definitions follow *** */ #ifdef uio_INTERNAL +#include +#ifdef HAVE_REGEX +# include +#endif + #include "uioport.h" struct match_MatchContext {