From b898cc3709878aa7996306f08f567f8c01f0c063 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Thu, 13 Nov 2008 16:23:04 +0000 Subject: [PATCH] solved build dependency puzzle in regex.c: * removed superfluous #include which was protected by an #ifdef that evaluated to false - so the file never got included, but jam tried to locate it and usually failed, unless there happens to be a config.h in the current working directory. This fixes a spurious dependency from regex.c to the config.h in src/libs/iconv.h if you invoked jam from there. * fixed two warnings by always including stdlib.h git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28639 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/glibc/regex/regex.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/system/libroot/posix/glibc/regex/regex.c b/src/system/libroot/posix/glibc/regex/regex.c index 358071b0dc..f836bc651f 100644 --- a/src/system/libroot/posix/glibc/regex/regex.c +++ b/src/system/libroot/posix/glibc/regex/regex.c @@ -27,10 +27,6 @@ #undef _GNU_SOURCE #define _GNU_SOURCE -#ifdef HAVE_CONFIG_H -# include -#endif - #ifndef PARAMS # if defined __GNUC__ || (defined __STDC__ && __STDC__) # define PARAMS(args) args @@ -143,12 +139,7 @@ even if config.h says that we can. */ # undef REL_ALLOC -# if defined STDC_HEADERS || defined _LIBC -# include -# else -char *malloc (); -char *realloc (); -# endif +#include /* When used in Emacs's lib-src, we need to get bzero and bcopy somehow. If nothing else has been done, use the method below. */