--- libmms-0.5.orig/src/mmsio.h	2009-10-31 13:35:28.000000000 +0100
+++ libmms-0.5/src/mmsio.h	2013-09-17 19:11:25.000000000 +0200
@@ -1,6 +1,7 @@
 #ifndef __MMS_IO_H__
 #define __MMS_IO_H__
 
+#include <fcntl.h>
 #include "mms_config.h"
 
 /* On 64 bit file offset capable systems, libmms' configure script adds
