On Friday 07 December 2007 Alexander Skwar wrote:
> Now I'm getting this compile error:
>
> CC export.c
> CC fsvs.c
> fsvs.c: In function 'Version':
> fsvs.c:539: error: stray '#' in program
r1255.
> fsvs.c:539: error: called object '"compile options:\012\011 HAVE_LOCALES=1
> AC_CV_C_UINT32_T=uint32_t HAVE_STRUCT_STAT_ST_MTIM=1 O_DIRECTORY==(0)="' is
> not a function fsvs.c:544: error: syntax error before string constant
> fsvs.c: In function 'main':
> fsvs.c:852: error: 'environ' undeclared (first use in this function)
> fsvs.c:852: error: (Each undeclared identifier is reported only once
> fsvs.c:852: error: for each function it appears in.)
> gmake[1]: *** [fsvs.o] Error 1
> gmake: *** [default-target] Error 2
environ is SUS:
environ - array of character pointers to the environment strings
http://opengroup.org/onlinepubs/007908799/xsh/environ.html
Does that help?
diff fsvs.c
Index: fsvs.c
===================================================================
--- fsvs.c (Revision 1255)
+++ fsvs.c (Arbeitskopie)
@@ -769,7 +769,7 @@ void *_do_component_tests(int a)
* in a clean list.
* - And calls the main action.
* */
-int main(int argc, char *args[])
+int main(int argc, char *args[], char *environ[])
{
struct estat root = { };
int status, help;
--
Versioning your /etc, /home or even your whole installation?
Try fsvs (fsvs.tigris.org)!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]