diff --git a/lib/Makefile.netware b/lib/Makefile.netware
index 9d7c78c3bc4464a387cb004874e7f5a4d79a70bf..bd5f4f4d1b21b544c5471b12ff7b13a2092e44f7 100644
--- a/lib/Makefile.netware
+++ b/lib/Makefile.netware
@@ -439,6 +439,8 @@ else
 	@echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
 	@echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@
 	@echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
+	@echo $(DL)#define SIZEOF_OFF_T 8$(DL) >> $@
+	@echo $(DL)#define _LARGEFILE 1$(DL) >> $@
 ifdef ENABLE_IPV6
 	@echo $(DL)#define ENABLE_IPV6 1$(DL) >> $@
 endif
diff --git a/src/Makefile.netware b/src/Makefile.netware
index b8ff8b7c3b427cfbf4e1df3e318f80c0e90a262e..73139aeb134a48e634bc227dc995ed5747a380fa 100644
--- a/src/Makefile.netware
+++ b/src/Makefile.netware
@@ -427,6 +427,8 @@ else
 	@echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
 	@echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@
 	@echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
+	@echo $(DL)#define SIZEOF_OFF_T 8$(DL) >> $@
+	@echo $(DL)#define _LARGEFILE 1$(DL) >> $@
 ifdef ENABLE_IPV6
 	@echo $(DL)#define ENABLE_IPV6 1$(DL) >> $@
 endif