[libvirt] [PATCH] regex: gnulib guarantees that we have regex support
Eric Blake
eblake at redhat.com
Fri Feb 15 20:03:31 UTC 2013
On 02/11/2013 03:13 PM, Eric Blake wrote:
> No need to use HAVE_REGEX_H - our use of gnulib guarantees that
> the header exists and works, regardless of platform. Similarly,
> we can unconditionally assume a compiling <sys/wait.h> (although
> the mingw version of this header is not full-featured).
>
> * src/storage/storage_backend.c: Drop useless conditional.
> * tests/testutils.c: Likewise.
> ---
>
> I noticed this while trying to clean up a VPATH test failure.
No review, so I went ahead and pushed it under the trivial rule.
> @@ -25,9 +25,7 @@
>
> #include <string.h>
> #include <stdio.h>
> -#if HAVE_REGEX_H
> -# include <regex.h>
> -#endif
> +#include <regex.h>
> #include <sys/types.h>
> #include <sys/wait.h>
> #include <unistd.h>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130215/09b1e974/attachment-0001.sig>
More information about the libvir-list
mailing list