diff --git a/contrib/mpeg_encode/bitio.cpp b/contrib/mpeg_encode/bitio.cpp
index 8e33c7d35237edb63f5c4f6b4c9fac31f1937633..1805a1aef7865e6c42063c24a10c2b0d7bdb0dfc 100644
--- a/contrib/mpeg_encode/bitio.cpp
+++ b/contrib/mpeg_encode/bitio.cpp
@@ -13,6 +13,8 @@
  *									     *
  *===========================================================================*/
 
+#define htonl(x) (x) // gmsh
+
 /*
  * Copyright (c) 1995 The Regents of the University of California.
  * All rights reserved.