summaryrefslogtreecommitdiff
path: root/util/nvramtool/cbfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/nvramtool/cbfs.c')
-rw-r--r--util/nvramtool/cbfs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/nvramtool/cbfs.c b/util/nvramtool/cbfs.c
index 801ee586b3..febe0bed07 100644
--- a/util/nvramtool/cbfs.c
+++ b/util/nvramtool/cbfs.c
@@ -19,15 +19,22 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
*/
+#ifdef __MINGW32__
+#include <winsock.h>
+#else
#include <arpa/inet.h>
+#endif
#include <sys/types.h>
#include <sys/stat.h>
+#ifndef __MINGW32__
#include <sys/mman.h>
+#endif
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#include "cbfs.h"
+#include "common.h"
#define ALIGN(x,a) __ALIGN_MASK(x,(typeof(x))(a)-1)
#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))