Patch to compile pan2 on OS X using glib-2.26

Dave Chand <[email protected]>
Newsgroups gmane.comp.gnome.apps.pan.devel
Message-ID <[email protected]>
Greetings,
I had some trouble compiling K.Haley's pan2 on OS X 10.6 using glib-2.26.
The attached patch remedied the problem for me.

regards,
Dave Chand.

_______________________________________________
Pan-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pan-devel
pan2_glib_typedef_patch.diff (application/octet-stream, 1.7 KB)
diff --git a/pan/tasks/queue.cc b/pan/tasks/queue.cc
index 0198a67..b132ebd 100644
--- a/pan/tasks/queue.cc
+++ b/pan/tasks/queue.cc
@@ -766,10 +766,10 @@ Queue :: get_task_speed_KiBps (const Task  * task,
 }
 
 void
-Queue :: get_stats (unsigned long   & queued_count,
-                    unsigned long   & running_count,
-                    unsigned long   & stopped_count,
-                    uint64_t        & KiB_remain,
+Queue :: get_stats (gulong   & queued_count,
+                    gulong   & running_count,
+                    gulong   & stopped_count,
+                    guint64        & KiB_remain,
                     double          & KiBps,
                     int             & hours_remain,
                     int             & minutes_remain,
diff --git a/pan/tasks/queue.h b/pan/tasks/queue.h
index a362d42..5e8c0d1 100644
--- a/pan/tasks/queue.h
+++ b/pan/tasks/queue.h
@@ -133,10 +133,10 @@ namespace pan
       const Task* operator[](size_t i) const { return _tasks[i]; }
       void get_all_task_states (task_states_t& setme);
       void get_task_counts (int& active, int& total);
-      void get_stats (unsigned long   & queued_count,
-                      unsigned long   & running_count,
-                      unsigned long   & stopped_count,
-                      uint64_t        & KiB_remain,
+      void get_stats (gulong   & queued_count,
+                      gulong   & running_count,
+                      gulong   & stopped_count,
+                      guint64	      & KiB_remain,
                       double          & KiBps,
                       int             & hours_remain,
                       int             & minutes_remain,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.