Просмотр исходного кода

Add a 'struct stat' forward declaration to fix a compilation warning

Guillem Jover лет назад: 18
Родитель
Сommit
9bcc24992c
2 измененных файлов с 6 добавлено и 0 удалено
  1. 4 0
      ChangeLog
  2. 2 0
      src/main.h

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2008-01-02  Guillem Jover  <guillem@debian.org>
+
+	* src/main.h (struct stat): New forward declaration.
+
 2008-01-02  Guillem Jover  <guillem@debian.org>
 
 	* lib/dpkg.h (warningf): Add PRINTFFORMAT attribute.

+ 2 - 0
src/main.h

@@ -178,6 +178,8 @@ void cu_closepipe(int argc, void **argv);
 void cu_closedir(int argc, void **argv);
 void cu_closefd(int argc, void **argv);
 
+struct stat;
+
 int ignore_depends(struct pkginfo *pkg);
 int force_breaks(struct deppossi *possi);
 int force_depends(struct deppossi *possi);