summaryrefslogtreecommitdiff
path: root/news/husky-msged/files/patch-fido.c
diff options
context:
space:
mode:
Diffstat (limited to 'news/husky-msged/files/patch-fido.c')
-rw-r--r--news/husky-msged/files/patch-fido.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/news/husky-msged/files/patch-fido.c b/news/husky-msged/files/patch-fido.c
new file mode 100644
index 000000000000..bff19e70f3a1
--- /dev/null
+++ b/news/husky-msged/files/patch-fido.c
@@ -0,0 +1,19 @@
+--- 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 */
+