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

Re: gdselect alpha 3



> >>>>> "Martin" == Martin Schulze <joey@finlandia.Infodrom.North.DE> writes:
> 
>     Martin> Fixed by moving "#include <stdio.h>" five lines up.  I
>     Martin> fixed it but forget about it, since it was *that* easy.
>     Martin> Not even worth mentioning.
> 
>     Ben> Er, in which file? The file that errored out was deps.c and
>     Ben> it doesn't even #include <stdio.h>.. Adding a #include
>     Ben> <stdio.h> to it makes it compile.
> 
>     Martin> It did not?  I'm sure mine did and I only moved it before
>     Martin> the offending lines.

Args, since it confuses so many people here's the patch.  It was
probably a different file.  Somebody needs to learn about reading
gcc errors...

--- include/dpkg-db.h.orig	Wed Oct 14 00:10:56 1998
+++ include/dpkg-db.h	Wed Oct 14 00:11:14 1998
@@ -158,6 +158,8 @@
 extern void dpkg_free_avail (struct dpkg_tagpkg **pl);
 extern void dpkg_free_status (struct dpkg_tagpkg **pl);
 
+#include <stdio.h>
+
 /* misc.c */
 extern int dpkg_lock (char *dir);
 extern void dpkg_unlock (void);
@@ -165,8 +167,6 @@
 extern void dpkg_write_select (struct dpkg_tagpkg *pl, FILE *f);
 
 /* File: dpkg/db/tags.h */
-
-#include <stdio.h>
 
 struct tagfile_tag
 {

Regards,

	Joey

-- 
Experience is a useful thing.  Unfortunately it is only acquired
just after one could have used it.


Reply to: