[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libvir] gnulib: take2, trunk-relative patch



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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]