diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index b0ddd46f3593bf0f621cab749faad220009e655e..87eca5ea204c556bbc0043d735b45fd7d7dcd0be 100644 --- a/src/storage/storage_backend.c +++ b/src/storage/storage_backend.c @@ -25,9 +25,7 @@ #include #include -#if HAVE_REGEX_H -# include -#endif +#include #include #include #include diff --git a/tests/testutils.c b/tests/testutils.c index 9c8f3651f9548604fc067d5a4f5492ad7346ddfb..7b2ea5122ec6649c5228ed36a8122b854e0f620f 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -1,7 +1,7 @@ /* * testutils.c: basic test utils * - * Copyright (C) 2005-2012 Red Hat, Inc. + * Copyright (C) 2005-2013 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -27,12 +27,8 @@ #include #include #include -#ifndef WIN32 -# include -#endif -#ifdef HAVE_REGEX_H -# include -#endif +#include +#include #include #include #include @@ -735,7 +731,6 @@ cleanup: } -#ifdef HAVE_REGEX_H int virtTestClearLineRegex(const char *pattern, char *str) { @@ -779,10 +774,3 @@ int virtTestClearLineRegex(const char *pattern, return 0; } -#else -int virtTestClearLineRegex(const char *pattern ATTRIBUTE_UNUSED, - char *str ATTRIBUTE_UNUSED) -{ - return 0; -} -#endif