freebsd-ports/news/husky-msged/files/patch-fido.c
Max Khon 977db1e146 Update to 6.2RC1. This also fixes unfetchable distfile.
patch-fido.c and patch-msg.c are required for compatibility with
pre 1.4 husky. They will be removed once husky ports are updated to 1.4.
2006-11-12 12:58:42 +00:00

19 lines
534 B
C

--- fido.c.orig Sun Nov 12 18:26:36 2006
+++ fido.c Sun Nov 12 18:28:10 2006
@@ -110,6 +110,16 @@
#define OPENC O_WRONLY | O_BINARY | O_CREAT /* open/create */
#define OPENRW O_RDWR | O_BINARY /* open read/write */
+/*
+ * get_word
+ *
+ * Reads in a 2 byte word that is stored in little endian (Intel) notation
+ * and converts it to the local representation in an architecture-
+ * independent manner
+ */
+#define get_word(ptr) \
+ ((word)(ptr)[0] | \
+ (((word)(ptr)[1]) << 8 ))
/* prototypes */