Hi,

The attached patch fixes the big-endian build.
The fix is reported upsream, but there is no reaction.
Should we wait for some reaction upstream
or is it possible to apply the patch for debian?

Regards,
Daniel
-- disque-1.0~rc1.orig/src/job.c
+++ disque-1.0~rc1/src/job.c
@@ -779,17 +779,17 @@ job *deserializeJob(unsigned char *p, si

     /* Deserialize the static part just copying and fixing endianess. */
     memcpy(j,p,JOB_STRUCT_SER_LEN);
-    memrev16ifbe(j->repl);
-    memrev64ifbe(j->ctime);
-    memrev32ifbe(j->etime);
+    memrev16ifbe(&j->repl);
+    memrev64ifbe(&j->ctime);
+    memrev32ifbe(&j->etime);
     if (sertype == SER_MESSAGE) {
         /* Convert back to absolute time if needed. */
         j->etime = server.unixtime + j->etime;
     }
-    memrev32ifbe(j->delay);
-    memrev32ifbe(j->retry);
-    memrev16ifbe(&sj->num_nacks);
-    memrev16ifbe(&sj->num_deliv);
+    memrev32ifbe(&j->delay);
+    memrev32ifbe(&j->retry);
+    memrev16ifbe(&j->num_nacks);
+    memrev16ifbe(&j->num_deliv);
     p += JOB_STRUCT_SER_LEN;
     len -= JOB_STRUCT_SER_LEN;



Reply via email to