diff --git a/src/machine.h.in b/src/machine.h.in
index 3c8610dcee3e7b3011a3abbef2ef08009595561c..ad6a7e67441d0c1b0ee98f2b4f4325d7022526d8 100644
--- a/src/machine.h.in
+++ b/src/machine.h.in
@@ -325,4 +325,7 @@
 /* Define if you have struct timeval */
 #define HAVE_STRUCT_TIMEVAL
 
+/* Define this to the max value of an unsigned short unles <limits.h> does.. */
+#undef USHRT_MAX
+
 #endif /* MACHINE_H */