diff --git a/src/encode.c b/src/encode.c
index a432f30226955fe146a1e205fd6cff4ccb0c5f2b..9ea61a1533d4deac3818d81332ce726088444b92 100644
--- a/src/encode.c
+++ b/src/encode.c
@@ -26,7 +26,7 @@
 #include "bignum.h"
 #include "pikecode.h"
 
-RCSID("$Id: encode.c,v 1.144 2002/05/11 00:28:59 nilsson Exp $");
+RCSID("$Id: encode.c,v 1.145 2002/05/13 20:43:17 grubba Exp $");
 
 /* #define ENCODE_DEBUG */
 
@@ -2729,7 +2729,10 @@ static void decode_value2(struct decode_data *data)
 	  getdata2(p->relocations, p->num_relocations);
 
 #ifdef DECODE_PROGRAM
-	  DECODE_PROGRAM(p);
+	  {
+	    int byteorder = PIKE_BYTEORDER;	/* FIXME: Used by bytecode.h */
+	    DECODE_PROGRAM(p);
+	  }
 #endif /* DECODE_PROGRAM */
 	  make_program_executable(p);