[Libvir] gnulib: take2, trunk-relative patch

Richard W.M. Jones rjones at redhat.com
Wed Dec 5 19:43:13 UTC 2007


Jim, to use the gnulib <string.h> replacement with GCC 4.1.2 compiled 
under MinGW, I needed to patch lib/string.h as follows:

--- gnulib/lib/string.h~        2007-12-05 18:29:29.000000000 +0000
+++ gnulib/lib/string.h 2007-12-05 19:36:22.000000000 +0000
@@ -280,7 +280,7 @@
     See also strtok_r().  */
  #if 1
  # if ! 0
-extern char *strsep (char **restrict __stringp, char const *restrict 
__delim);
+extern char *strsep (char **__restrict__ __stringp, char const 
*__restrict__ __delim);
  # endif
  # if defined GNULIB_POSIXCHECK
  #  undef strsep

This seems to be because C99's restrict keyword is not enabled by 
default.  You need to pass the -std=c99 parameter to the compiler to get 
this.

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071205/6458710c/attachment-0001.bin>


More information about the libvir-list mailing list